Forum: MS SQL Jul 25th, 2008 |
| Replies: 3 Views: 1,047 hello,
>>> "select * from table1 where RAM between ... "
Never use *, the sign of slackers! You must always enumerate only those columns you really need for your datagrid!
There are lots of... |
Forum: MS SQL Jul 20th, 2008 |
| Replies: 3 Views: 2,268 Hello dmmckelv,
When Edgar Frank Codd invited relational databases his primary idea was to found it on
logic algebra and set theory. The rows of relational tables (aka relations) are sets.... |
Forum: MS SQL Jul 2nd, 2008 |
| Replies: 2 Views: 2,458 [QUOTE=harcaype;639245]
SELECT Vio.ViolationList.ViolationCode,Records.[Violation Commited],Vio.ViolationList.FineAmnt,DriverInfo.[Plate Number]
,DriverInfo.[License Number],DriverInfo.[Reg'd Last... |
Forum: MS SQL Jul 1st, 2008 |
| Replies: 4 Views: 2,545 amongst other things, it depends on precision... |
Forum: MS SQL Jul 1st, 2008 |
| Replies: 4 Views: 2,545 Hi,
So you have a table consisting of 6 columns: Column Name Data Type Length
Turnover where the latter should be of decimal data type???
What do you mean by "that the max value could be... |
Forum: MS SQL Jun 16th, 2008 |
| Replies: 15 Views: 2,282 Hi
you may start SQL Server Management Studio (If you are using SQL server Express you can download SQL Server Management Studio separately) an then create staff table, enter some rows, for... |
Forum: MS SQL Jun 13th, 2008 |
| Replies: 15 Views: 2,282 After having done that hard job shutdown server is badly necessary ! |
Forum: MS SQL Jun 7th, 2008 |
| Replies: 10 Views: 11,307 oops wujtehacjusz, you may have a look at issue date;) |
Forum: MS SQL Jun 5th, 2008 |
| Replies: 9 Views: 2,340 Sorry, I thought Access would have been able to handle joins. The inner joins you need can be replaced by cross products and join conditions in where clause, try this:
select c.CustomerID,... |
Forum: MS SQL Jun 4th, 2008 |
| Replies: 9 Views: 2,340 Hi HB25,
Your first select should look like:
select c.CustomerID, c.Surname, c.Address, c.Town, c.Postcode,
o.OrderID, o.Date,
i.ProductID, i.Qty, p.Description from Customer c
join... |
Forum: MS SQL Jun 4th, 2008 |
| Replies: 9 Views: 2,340 Dear friend
One can help you only if you show the corresponding data model your tasks are based on!
krs,
tesu
p.s. your selects seem to be rather imperfect. |
Forum: MS SQL May 20th, 2008 |
| Replies: 7 Views: 1,680 Sorry, corretion:
We don't have 4000, sorry, only about 400 categories!
Need a little help for drawing the sample tree: it consists of one main category, three sub categories, two sub sub... |
Forum: MS SQL May 20th, 2008 |
| Replies: 7 Views: 1,680 Hi greeny,
There is no doubt that your doubt tells me you didn't understood anything of my sample code
neither you have drawn the tree of the example categories tree. If you don't understand this... |
Forum: MS SQL May 19th, 2008 |
| Replies: 7 Views: 1,680 Hi greeny,
a way to solve this completely independently from the number of categories and subcategories are (recursive) trees in SQL. There is a famous book: Transact-SQL Cookbook by Ales Spetic,... |
Forum: MS SQL May 11th, 2008 |
| Replies: 6 Views: 1,476 hi recursiveNugget,
bad news! I have checked your join operations on those 6 tables, and the (wrong) results are:
1. contact.id
id 2 will be counted 20 times
id 5 will be counted 16... |
Forum: MS SQL May 11th, 2008 |
| Replies: 6 Views: 1,476 Hi,
Left outer join should be replaced by inner join, as already stated. Can you post the create- table statements? I have got the feeling that something could be wrong with the relationships of... |