In PostgreSQL, I can do something like this to define and then use a composite type:
create type PERSON as (first varchar, last varchar);
select PERSON '("tom", "jones")'
And in SQL Server I can also create a custom type by doing:
create type person as table (first varchar, last varchar);
Is there any way then to use that composite/table-type within a select statement, such as doing:
select CAST(('tom', 'jones') AS person)
Or something similar?