Viewing 15 posts - 2,866 through 2,880 (of 8,416 total)
I may have taken the requirements a bit too literally here, but anyway, here's my shot at it:
SELECT [Case Number] = case_number,
...
July 22, 2010 at 6:52 am
tosscrosby (7/22/2010)
Got a date?
SELECT CONVERT(DATETIME, '19000101', 112);
July 22, 2010 at 6:09 am
Tasnim,
Do you get any rows returned from the following query?
SELECT AppName, AppVer, AIT_ID, COUNT(*)
FROM Master_Application_List
GROUP BY
...
July 22, 2010 at 5:54 am
Try using the Wizard I mentioned to generate the data (it's the test values I'd like, not just the template INSERT statements). Don't worry too much if you can't.
July 22, 2010 at 3:00 am
Thanks. If you could provide a few rows of INSERT statements for the test data that would be great too.
(Right-click the database, Generate Scripts...and make sure you select Script...
July 22, 2010 at 2:45 am
You can script the table definitions out using Management Studio 🙂
It will also script the data if you set the options right.
Otherwise, it's just too much work to try to...
July 22, 2010 at 2:28 am
If the restrictions I mentioned don't apply, the following extension of Adam's code illustrates a single-step alternative:
Setup:
USE tempdb;
GO
CREATE TABLE dbo.MasterRecord
(
...
July 22, 2010 at 2:18 am
Adam Haines (7/21/2010)
July 22, 2010 at 1:43 am
Lynn Pettis (7/21/2010)
Please, someone, hit me with the proverbial 2 x 4 if I ever start acting that way.
*SMACK*
Just kidding 😀
July 21, 2010 at 11:42 am
stephen k. gartrell (7/21/2010)
IANAL, but I find myself forced to contemplate a class action on behalf of the American people in defense of our reputation. :hehe:
Funny :laugh:
I had to...
July 21, 2010 at 2:29 am
mpradeesh,
It would help if you could provide some sample data to illustrate exactly what you want to happen.
There are a number of alternatives.
Be aware though that using the OUTPUT clause...
July 21, 2010 at 12:42 am
There are a few things to sort out there - could you please post the CREATE TABLE statements for each of the tables involved? It would also help a...
July 21, 2010 at 12:30 am
CirquedeSQLeil (7/20/2010)
Even a chat here could be seen as a verbal warning and would be the minimum requirement.
I disagree. It's perfectly possible to sit down with people to talk...
July 20, 2010 at 10:51 pm
This demonstrates one way the problem can arise:
-- Demo tables
DECLARE @T1 TABLE (A INTEGER NULL);
DECLARE @T2 TABLE (B INTEGER NULL);
-- Add rows with values (1, 2, 3) to table A
INSERT...
July 20, 2010 at 10:43 pm
Rich-403221 (7/20/2010)
I call shenanigans !!! That's a filtered view, not a filtered index 😛
:laugh:
July 20, 2010 at 10:32 pm
Viewing 15 posts - 2,866 through 2,880 (of 8,416 total)