![]() |
|
![]() | ||
|
Subject:
dbms+sql
Category: Computers Asked by: tanujaravi-ga List Price: $2.00 |
Posted:
05 Mar 2006 12:51 PST
Expires: 04 Apr 2006 13:51 PDT Question ID: 703913 |
1. The following tables exist in a database. The first table is used to register customers within the system while the second table records customer orders. Currently, the database contains 1.5 million customer entries with at least one order per customer. Company representatives often look up customer orders based on the customer?s account number. There are numerous complaints that as the number of users on the system increases customer order searches begin to time out. You are called in to investigate. What is your course of action? create table customer ( customerid int identity, -- unique customer id fname varchar(50), -- customer first name lname varchar(50), -- customer last name accountnum varchar(11) -- account number ); create table customerorder ( orderid int identity, -- unique order id customerid int, -- foreign key from customer table orderdate datetime -- date the order was placed ); | |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: dbms+sql
From: halojetter-ga on 08 Mar 2006 01:14 PST |
What you can do is split the database according to commodities, i.e. group some number of items and have seperate database for each group. This will reduce number of customer in each database. |
Subject:
Re: dbms+sql
From: noodlesnyc11-ga on 13 Mar 2006 12:27 PST |
Could u try creating an index on accountnum column in customer table. Since your searches are based on the account number, it should speed up the queries. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |