Viewing 15 posts - 4,666 through 4,680 (of 7,636 total)
sriniw8z (11/28/2008)
In this case which one is best one to create PRIMARY KEY for this Transaction table
As said, it depends on what you want to do:
CASE 1: EmpID, BookID -...
November 29, 2008 at 11:18 am
Can you script out the table definition and show it to us?
Thanks,
November 29, 2008 at 10:40 am
Jeff Moden (11/29/2008)
November 29, 2008 at 9:26 am
Huhn, the bug happens on my last remaining SQL 2000 server also. MAXDOP has no effect on it.
November 29, 2008 at 9:04 am
Let us know how these work out.
November 29, 2008 at 8:45 am
Hmm, it occurs to me now, that there is another possibility here, that instead of si.Qty, you really intended to use ip.Quantity, which can vary for every Item Purchase. ...
November 29, 2008 at 8:44 am
ITHELP85 (11/28/2008)
rbarryyoung (11/28/2008)
Did you try mine?Yes, but under Percent of sales I got whole numbers.
Getting "only whole numbers" from an equation is almost always a datatype problem, easily fixed, and...
November 29, 2008 at 8:38 am
Did you try mine?
November 28, 2008 at 11:03 pm
Jeff Moden (11/28/2008)
CrazyMan (11/28/2008)
CREATE VIEW VTEST AS
SELECT A,B FROM TABLE1
UNION
SELECT A,B FROM TABLE2
This view cant do update :D, it is read only 🙂
Ummm... not if it's a partitioned view...
November 28, 2008 at 6:43 pm
Yeah, but he's getting dupes, even from the Group By categories, Jeff.
Chris: FWIW, I am not seeing this on my Laptop.
November 28, 2008 at 5:18 pm
Heh. Now that sounds like the ancient art of Wi-Yi-Yotta.
😛
November 28, 2008 at 3:46 pm
Jack: You'll probably need a MAX or MIN on your "total_sold" in the columns list.
November 28, 2008 at 2:28 pm
... And the only reasons that I can think that you would use this are:
1) Minor Security nit: because you do not want the client software to know the names...
November 28, 2008 at 2:24 pm
I do not believe that it affects SSMS or the query window in any discernible way.
All VIEW_METADATA does is to change how the returned columns are defined to...
November 28, 2008 at 2:16 pm
Like this:
/* Displays Store Name and Items that were Purchased from that Store that have been in Sales Transactions and the Items Sales percentage */
CREATE VIEW STORE_SALES_ITEMS99
([Store Name], [Store...
November 28, 2008 at 1:53 pm
Viewing 15 posts - 4,666 through 4,680 (of 7,636 total)