Viewing 15 posts - 1,411 through 1,425 (of 5,504 total)
My question is that Should we use the indexed views or not.
Maybe. Maybe not. Depends on various items (e.g. business process, table size, hardware, numberof calls etc.).
What are the pros...
June 8, 2011 at 2:11 pm
Gianluca Sartori (6/8/2011)
Roy Ernest (6/8/2011)
Does going down the stairs and way to the back of the office towards the beach to take a smoke break count for this? 🙂
That's not...
June 8, 2011 at 12:15 pm
The easiest way to verify it would be to add a AFTER UPDATE trigger to a test table and insert the results of the internal DELETED and INSERTED tables into...
June 6, 2011 at 1:41 am
As long as you're referencing within the same instance (as you mentioned) Edit: [and the user has the permission to access this object], you could use the three-part name to...
June 4, 2011 at 6:00 pm
It's a weird process to import duplicates on purpose and try to figure out there are duplicates afterwards... Why not add those rows to a separate table holding just the...
June 4, 2011 at 2:35 am
Duplicate post.
Already answered here.
June 4, 2011 at 2:27 am
Please re-read my previous post regarding some test data and help us help you.
It should return MAX(Balance) per Customer.FName and Customer.Address. So I would expect one row per customer. If...
June 3, 2011 at 5:12 pm
The syntax is correct. It returns data. So it IS working.
The fact you're expecting other results implies you're looking for a different query then. 😉
Since we don't know your data...
June 3, 2011 at 1:16 pm
Something like
SELECT MAX(Balance) AS BalanceMax, Customer.FName, Customer.Address
FROM Accounts INNER JOIN
Account_mm_Customer ON Accounts.AccountID = Account_mm_Customer.AccountID INNER JOIN
Customer ON Account_mm_Customer.CustomerID = Customer.CustomerID
GROUP BY Customer.FName, Customer.Address --, Balance
June 3, 2011 at 12:51 pm
Please explain what you'retrying to achieve (not in terms of SQL code but in terms of the related business case).
As per now to me the concept looks weird... There are...
June 3, 2011 at 3:33 am
Learn_something_new_everyday (6/2/2011)
June 3, 2011 at 3:22 am
You might want to search this site for "calendar table" or you could have a look at the tally table article referenced in my signature (at the end there's an...
June 3, 2011 at 3:10 am
Either
SELECT model, COUNT(model) AS Qty_model
FROM PRODUCT
GROUP BY MODEL
HAVING COUNT(MODEL)>=3
AND TYPE = 'PC'
or
SELECT model, COUNT(model) AS Qty_model, TYPE
FROM PRODUCT
GROUP BY MODEL, TYPE
HAVING COUNT(MODEL)>=3
AND TYPE = 'PC'
June 3, 2011 at 3:04 am
SQLRNNR (6/2/2011)
LutzM (6/2/2011)
Also, I will start to participate on the site more often. It has always been useful and seems to be very...
June 2, 2011 at 9:54 am
To quote from a thread I've been involved:
Also, I will start to participate on the site more often. It has always been useful and seems to be very helpful and...
June 2, 2011 at 9:40 am
Viewing 15 posts - 1,411 through 1,425 (of 5,504 total)