Viewing 15 posts - 9,316 through 9,330 (of 9,398 total)
I like Lynn's approach of splitting it inline and keeping it to a single query instead of using temp tables. Also, his function will be usable elsewhere.
February 27, 2013 at 8:50 am
SQL is a declarative language, so a delimited list stored in a variable won't be evaluated. In short, I believe there are two ways of accomplishing this.
The first approach...
February 27, 2013 at 8:47 am
Thank you, Jeff and Dwain, for following up.
February 27, 2013 at 5:41 am
dmarz96 (2/26/2013)is there a way to get only one record or am i doint this wrong.
I think this is the statement that caused me to think only one of the...
February 27, 2013 at 5:39 am
mickyT (2/26/2013)
SELECT Columns
FROM HRCandidateProject
ORDER BY CASE
WHEN TotalExperience BETWEEN 1 and 2 THEN...
February 26, 2013 at 1:25 pm
You could use SELECT TOP 1, but I don't know if that's what you really want.
If you have more than one row meeting your search criteria, you should either want...
February 26, 2013 at 1:11 pm
Is this what you're looking for?
SELECT a.COMCODE, a.ACTCODE, a.ACTDESC
FROM ACINF a
INNER JOIN ACPMNTA b ON b.ACTCODE = a.ACTCODE
WHERE a.COMCOD = 3305
...
February 26, 2013 at 4:34 am
My mistake. I was referring to the regular expressions approach you took in SQL working either way as opposed to some string parsing approach.
February 25, 2013 at 1:05 pm
From your BULK INSERT statement, you're not actually importing from an Excel file, but from a CSV file.
This is an important distinction because it's been my experience that you have...
February 25, 2013 at 12:54 pm
One other noteworthy point is that is you are set up for case insensitivity, the SQL approach won't work. The regular expression approach works either way.
February 25, 2013 at 12:13 pm
Thank you, Perry. I was just getting ready to post that I couldn't do it myself with my permissions.
I just love the wide variety of stuff available for learning...
February 21, 2013 at 7:29 am
Do you have permission on the server itself? I know you need the sysadmin server role to run xp_logininfo, but I'm not sure what you need on the server...
February 21, 2013 at 7:19 am
Good point. We're back to needing the DDL.
February 21, 2013 at 7:01 am
Data definition language. It's how you create the tables. For example, CREATE TABLE Bookings ...
February 21, 2013 at 6:58 am
Viewing 15 posts - 9,316 through 9,330 (of 9,398 total)