How to display specific row in Access -
if have table primary key 'id', , have other data in columns, (let's example: name, address, phonenum) how can make query displays name, address , phonenum (the whole row) vertically specific id?
if needed can post picture trying explain mean.
thanks! :)
for sample data in table called [clients]
id lastname firstname email -- -------- --------- ----- 1 thompson gord gord@example.com 2 loblaw bob bob@example.com 3 kingsley hank hank@example.com
the query
select "lastname" fld, lastname val clients id=1 union select "firstname" fld, firstname val clients id=1 union select "email" fld, email val clients id=1;
returns
fld val --- --- lastname thompson firstname gord email gord@example.com
Comments
Post a Comment