I am trying to insert some text data into a table in SQL Server 9. The text includes a single quote '. Ho
Both these joins will give me the same results: SELECT * FROM table JOIN otherTable ON table.ID = otherTable.
What is the best way to get IDENTITY of inserted row? I know about @@IDENTITY and IDENT_CURRENT and SCOPE_IDE
I need to update this table in SQL Server with data from its 'parent' table, see below: Table: sale
I want to delete using INNER JOIN in SQL Server 2008. But I get this error: Msg 156, Level 15, State 1, L
How do I perform an IF...THEN in an SQL SELECT statement? For example: SELECT IF(Obsolete = 'N' OR
How do I do a SELECT * INTO [temp table] FROM [stored procedure]? Not FROM [Table] and without defining [temp
SELECT GETDATE() Returns: 2008-09-22 15:24:13.790 I want that date part without the time part: 2008-09-22 0
Consider a database table holding names, with three rows: Peter Paul Mary Is there an easy way to turn this i
How can I add a column with a default value to an existing table in SQL Server 2000 / SQL Server 2005?
In SQL Server, it is possible to insert rows into a table with an INSERT.. SELECT statement: INSERT INTO Table
I have tried reading some articles, but I am not very clear on the concepts yet. Would someone like to take a