![]() |
T-SQL with a added field
Hello everyone,
Anyonme know how to add a field to a query? I want to add a field with the same data in all rows. Example: select name, id, company from test * There is no company field in the test table, but I want to add it to my result with all company data equal to HHA. Any help will be greatly appreicated. -- Thanks, Himansu |
T-SQL with a added field
select name, id, "HHA" as company from test
Tim "Himansu" wrote in message ... Hello everyone, Anyonme know how to add a field to a query? I want to add a field with the same data in all rows. Example: * There is no company field in the test table, but I want to add it to my result with all company data equal to HHA. Any help will be greatly appreicated. -- Thanks, Himansu |
All times are GMT +1. The time now is 01:20 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com