Microsoft
Software
Hardware
Network
Question : Problem with SQL syntax
I want to create a combo box with the source from a table but I want to insert an item at the top of the list. eg.
(None)
Item 1
Item 2
Item 3
etc.
I've done it many times in the past, but forgotten the syntax.
Thanks in advance.
Answer : Problem with SQL syntax
You would use a union query:
Select "(None)" From SomeTableName
Union
Select AField FromYourTableName
The Number and data type of the fields must match in each select statement.
Random Solutions
DNS on new domain
Cognos with .NET
Browser CSS Alignment
Cant Install SQL Server 2008 on Windows Server 2008 R2
Dropdowns in grid view 'edit item template' not working
Sync .pst calendar with Exchange calendar
GoogleToolbarUser_32.exe process using 50% of CPU
System.NullReferenceExcept<wbr />ion for Excel.Workbooks.Open (visual Studio
exchange 2003 dropping mail with invalid from field
sql query using count