SQL in the City

Technical Article

RE: Cursor not working

  • Reply

quote: I believe you are right, but I get equally lost in dealing with all the CASE statements and (so far, anyway) I have found the IF construct in SQL somewhat confusing since there's no requirement for THEN and ENDIF. Any suggestions in that regard--other than just lots of practice and trial-and-error? I guess there […]

2003-12-30

Technical Article

RE: upgrading from Access to TSQL

  • Reply

Thanks Steve & noeld. Steve - I'll add the table aliases and check out CAST (do you have a good URL for that handy?) Noeld - yes - the app is running now fine in Access, and I will keep this one there. I'm just trying to convert it into tsql to see what changes […]

You rated this post out of 5. Change rating

2003-12-29

1 reads

Technical Article

RE: upgrading from Access to TSQL

  • Reply

The First is that instead of where cnt > 1 Should be deleted and after "group by" just write having count(*)>1 The Second is treaky but, why are you selecting * and the a field that is supposed to be taken from the select statement ? And by the way Your query is formated in […]

You rated this post out of 5. Change rating

2003-12-29

1 reads

Technical Article

RE: upgrading from Access to TSQL

  • Reply

for the first one, you need a table alias, so select a.* from (select....) a where a.cnt > 1 For the 2nd, look up CAST in BOL. Steve Jones sjones@sqlservercentral.com http://qa.sqlservercentral.com/columnists/sjones The Best of SQL Server Central.com 2002 - http://qa.sqlservercentral.com/bestof/ www.dkranch.net

You rated this post out of 5. Change rating

2003-12-29

1 reads

Technical Article

RE: Rebuild fk constraints?

  • Reply

Eoin and Greg Thanks for your replies. I actually tried out Gregs script first before I saw Eoin's one. It worked, very well. Eoins script looks very similar. Thank you both. Eamon Edited by - eamonroche on 12/19/2003 03:51:11 AM

You rated this post out of 5. Change rating

2003-12-19

1 reads

Blogs

Set a Runtime Variable in an Azure DevOps Pipeline

By

Note: I DO NOT recommend this. Any changes to a pipeline should be in...

A New Word: Symptomania

By

symptomania – n. the fantasy that there’s some elaborate diagnosis out there that neatly...

Query Store Keeps Switching Itself Off, Getting it Moving Again

By

I recently received a complaint that Query Store for a particular database was turned...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers