Viewing 15 posts - 46 through 60 (of 75 total)
SELECT
Field1
FROM a
JOIN b ON a.Field1 = b.Field1
JOIN
(
SELECT
Field1,
MIN(Date) AS MinDate,
...
July 14, 2009 at 11:54 am
skailey (7/14/2009)
select field1
from a
inner join b on b.Field1...
July 14, 2009 at 10:58 am
Greetings,
If your concern is to not run all of the checks, then you can modify the IF statements as such:
IF EXISTS(SELECT * FROM MyTable WHERE Checks2 = true) AND @ChecksFlag...
July 13, 2009 at 9:36 am
Greetings,
Not sure if you are asking for putting a CASE inside a stored procedure or if you want a single SELECT to use the CASE statement. It sounds like...
July 13, 2009 at 8:44 am
Greetings,
Please take a look at the code again, especially in the WHERE clause.
WHERE
(
@OtherAddressDetails = 'member address'
AND OtherAddressDetails = @OtherAddressDetails
...
July 10, 2009 at 8:56 am
Greetings,
I had missed that the IF statement was on the variable when considering the 2 statements. So, here is a slightly modified statement from the one I had given...
July 10, 2009 at 8:44 am
Greetings,
From what I can see, the address is being selected on 2 opposite checks on the same table. So, either way, you still get the address. If that...
July 10, 2009 at 8:33 am
Greetings,
You are correct, the ascii comparison is character by character for higher value. But, his requirement was only that it was greater than 1. In that case, then...
July 10, 2009 at 8:05 am
Greetings,
This might not be a way to cause it to process in the correct order, but it would still work.
SELECT
field1
FROM devTable
WHERE
ISNUMERIC(field1) = 1
AND field1...
July 10, 2009 at 7:51 am
Greetings,
Here is some code that will first break your name into 3 separate pieces. Then, it will take the 3 pieces and put them back together as needed for...
July 10, 2009 at 6:56 am
2Tall (7/10/2009)
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROC [dbo].[bsp_intranet_product_search]
@ProductId ...
July 10, 2009 at 6:25 am
Greetings Andrew,
I may be incorrect about this, but I suspect that the EXEC() operates like a batch. So, it is changing your DB focus, but when it finishes, so...
July 9, 2009 at 1:39 pm
Greetings,
Another option that you might want to try is to fetch the last identity value prior to the batch insert. Then, you can use a T-SQL statement to fetch...
July 9, 2009 at 6:46 am
Greetings Jason,
I really doubt that Microsoft will have the scripts handy that you can run to install the database. Your best bet might be if somebody can make a...
July 9, 2009 at 5:59 am
descentflower (7/6/2009)
i have to select rows from a table based on an 'in' . I will pass a parameter to the procedure which can be ALL, 0...
July 8, 2009 at 1:32 pm
Viewing 15 posts - 46 through 60 (of 75 total)