Forum: MS SQL Oct 16th, 2009 |
| Replies: 1 Views: 542 I have a table for example: tb1
with data:
cse-12m
cse-343k
cse-mka
cse-ptu
cse-jpy
How can I write a SELECT statement to retrieve data in one of these formats:
1) cse-three digits number |
Forum: MS SQL Jul 16th, 2009 |
| Replies: 4 Views: 388 How about "part1", "part3" are retrieved from SELECT statement? to use "select from table where component in (select part1 from....)"?
Also "IN(part1, part3)" is OR , not AND, right? I need "AND". |
Forum: MS SQL Jul 16th, 2009 |
| Replies: 4 Views: 388 I have one table in this format:
Product Component
---------------------------
A part1
A part2
B part1
B part4
A part3
C ... |
Forum: MS SQL Feb 13th, 2009 |
| Replies: 2 Views: 853 I have a table in MS SQL DB, the data was recorded with redundancy, is there an easy way to remove all but keep only one, for example:
id name age dept
---------------------------
1 ... |
Forum: MS SQL Feb 6th, 2009 |
| Replies: 1 Views: 463 I am currently using MS SQL 2000 server as backend database for web site (written in php), now plan to switch DB to MS SQL 2008 Express, I have questions about this conversion:
1) Will MSSQL2008... |
Forum: MS SQL Jun 30th, 2008 |
| Replies: 6 Views: 3,825 I use MSSQL 2000 version.
Thank you tesuji, here is the table I need to remove duplicate records.
Table "addonitems":
partid componentid quantity revision componentrevision note... |
Forum: MS SQL Jun 26th, 2008 |
| Replies: 6 Views: 3,825 I have a MSSQL table that contains lots of duplicate records, is there a simple way to keep only one and remove all other duplicates?
mike M 60
mike M 60
mike M 60
I need only one record
... |
Forum: MS SQL Jul 28th, 2006 |
| Replies: 1 Views: 1,713 product transaction date
--------------------------------------
1 06/07/2006
2 06/05/2006
2 06/10/2006
3 06/09/2006
I have a table like above, now I want to retrieve the latest transaction... |
Forum: MS SQL Jul 21st, 2006 |
| Replies: 4 Views: 18,085 Thank you very much for pointing it out, I was confused. |
Forum: MS SQL Jul 14th, 2006 |
| Replies: 4 Views: 18,085 When I try to use MS SQL Server Enterprise Manager to create table, I typed column name, data type as "int", however the length of "int" is 4, that is fixed I cannot change, now the problem is I need... |
Forum: MS SQL Jul 10th, 2006 |
| Replies: 1 Views: 2,342 I have a question about the possible string match in sql statement, for example I have variable "$val=abc", I can write:
SELECT * FROM table WHERE field like '%$val%'
this will list all... |
Forum: MS SQL May 16th, 2006 |
| Replies: 2 Views: 2,364 thank you very much for the answer! |
Forum: MS SQL May 15th, 2006 |
| Replies: 2 Views: 2,364 In MSSQL "SQL server enterprise manager"(client side), I run query and application display record list, if I want to set a cell to "<NULL>" value, how can I do that with the hot key? thanks for any... |
Forum: MS SQL Jul 25th, 2005 |
| Replies: 1 Views: 2,009 |
Forum: MS SQL Jul 23rd, 2005 |
| Replies: 1 Views: 2,009 Hi,
I am in the process of deciding the database and application language.
We have exising MS SQL server running on windows OS, to save the company's product data, right now I need to build... |