all groups > sql server misc > april 2006
SQL QUERY
Posted by mail NO[at]SPAM abibiano.com at 4/21/2006 7:12:41 AM
I'm looking for the most optimized query for this scenario:
I have a product table
ID Name
A Test A
B Test B
C Test C
and a price table
ID Date Price Test
A 01-01-2006 10 Price 1 A
A 01-05-2006 12 Price 2 A
B 01-05-2006 20 Price 1 B
C 01-01-2006 30 Price 1 C
C 01-05-2006 3... more >>
Reformatting data
Posted by Wendy at 4/21/2006 12:00:00 AM
Hi
I have a date field that comes in the format yyyymmdd, I'd like to turn this
round to show dd/mm/yy. I can do this in Microsoft Access using left,right
and mid, but mid doesn't work in sql. Can anyone suggest an alternative?
Thanks
Wendy
... more >>
select * in views
Posted by Peter at 4/16/2006 12:22:39 AM
People are telling me it is bad to put
select * from <atable>
in a view. I better should list all fields of the table inside the
definition of the view.
I dont know exactly why but some say:
A select * from makes sql server does a table scan.
Is that true, even if i put a where... more >>
How to get a character from a string
Posted by hon123456 at 4/13/2006 3:09:34 AM
Dear all,
I have a field with String type. The format is like that e.g
12345a 23456b or 12345 . The last english character of the field is
optional. Now I need to determine whether the last english character
exist, if it exist, then I need to extract the last english character.
fo... more >>
How to Search a field
Posted by hon123456 at 4/13/2006 3:01:51 AM
Dear all,
I have many tables in SQL server. Now I want to search a
field name as "size" in one of the table, but I forgot which table it
is located in. How can I find out which table the "size" is located?
Thanks
... more >>
Need help understanding a memory issue
Posted by pshroads NO[at]SPAM gmail.com at 4/5/2006 10:09:44 AM
I get the following errors a couple of times a day and I want to make
sure I understand what it's saying. As it states in the error, SQL
Server "Failed to reserve contiguous memory of Size= 15990784." So it
was unable to reserve 15 MB of contiguous memory, correct?
As I understand it since thi... more >>
|