|
Sounds like you don't have a clue. If you are being paid to do this, give the money back now. Alternatively, try a site like rentacoder.com and pay for it.
Seriously, there are so many things wrong with what you are asking for you have no chance of really doing it. For example, just think about the security issues of connecting to a hospital database.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
chuckle - pretty well what I told him over in the MySQL forum !
'g'
|
|
|
|
|
I'am glad I probably never gonna go to a hospital that uses your "system".
but anyway, here is a handy 10 points step by step guide
Step 0: Get a clue of what you are trying to do.
Step 1: Learn to code.
Step 2: Write a good system spesification, including databse design, software design, user interface and so on.
Step 5: Develope an prototype (Low-fidellity).
step 3: Choose an appropiate development methology for the prodject (eks. SCRUM, Extreme Programming, Rational Rose, Spiral model).
step 4: Choose an appropiate system structure (eks. n-tier, business Layer, MVC).
Step 5: Develope an prototype (High-fidellity).
Step 6: Implement the database design.
Step 7: write alot of code.
Step 8: Do alot of testing.
Step 9: Do alot of usability testing.
step 10. profit.
modified on Wednesday, September 2, 2009 7:59 AM
|
|
|
|
|
i want a to make a blood bank data base can one help me please
|
|
|
|
|
please any one have any idea for this send to me here or in my email to comunicat with him/here
|
|
|
|
|
Is this a school project or is this really gonna be a real worl app??
Are you a developer or you just have the idea??
if not a school project, are you getting paid for this??
Alexei Rodriguez
|
|
|
|
|
Hi,
I would like to export a database I use at work to test at home.
I'm wondering if there is a way to export it so the whole database is stored as a file, and you can connect to the file as if it was the SQL server (I cant access the SQL server from home).
Is something like this possible?
I am running SQL Server Management Studio 2005.
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
Hi,
you could use the SQL Server 2005 Express Edition at home. It is free to use... Then just create a complete backup at work and restore it at home.
Regards
Sebastian
|
|
|
|
|
Yes. Use the copy database wizard.
“If you think you are worth what you know, you are very wrong. Your knowledge today does not have much value beyond a couple of years. Your value is what you can learn and how easily you can adapt to the changes this profession brings so often.”-– Jose M. Aguilar
|
|
|
|
|
Just run backup...
Run this script in your office computer :
BACKUP DATABASE [db] TO DISK = N'c:\Backup\db.bak' WITH NOFORMAT, NOINIT, NAME = N'db-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
It will produce an output db.bak in your local C:\backup folder.
[Please replace db with your database name on the script.]
Now in home run this :
RESTORE DATABASE [db] FROM DISK = N'C:\Backup\DB.bak' WITH FILE = 1, NOUNLOAD, REPLACE, STATS = 10
GO
Here db is the name of the database it will create when it restores, place the db.bak file from your office to your home computer in C:\backup or whatever you like to and finally run it..
|
|
|
|
|
if you have good internet connection then you can connect remotely as well as by using sql express and their are also so many other Sql Management tools are availbale same like sql server management studio you can use them also and there are some hand tools for sql server datase copying /backup and emailing automatically
http://www.sqlbackupandftp.com/[^]
http://www.download3k.com/System-Utilities/Backup-Restore/Download-SQLBackupAndFTP.html[^]
while other regular options are their as well as normal backups and copy database , mirroring etc
Best Of Regards,
SOFTDEV
Sad like books with torn pages, sad like unfinished stories ...
|
|
|
|
|
Means he needs to expose the SQLServer browser from the firewall of the server... This would not be a good option I think.
|
|
|
|
|
if possible then he can add Execption depends upon cicrumstances and is one of the option if possible otherwise there copying or backup is good option and he can even export only some tables and if he can export tables into XML and then can import then it will be even another way to do it , depends upon the nature as far as my understanding is he is not using at clients he is using for his test pc at home
Best Of Regards,
SOFTDEV
Sad like books with torn pages, sad like unfinished stories ...
|
|
|
|
|
I have following two tables
1st table is Fee:
PK ---- payable
1 ---- 1500
2 ---- 1200
3 ---- 1900
2nd table is Fee_Detail:
pk ---- paid ---- fk_fee
1 ---- 700 ---- 1
2 ---- 400 ---- 1
3 ---- 400 ---- 1
4 ---- 800 ---- 2
5 ---- 300 ---- 2
Result should be
payable ---- paid
1500 ---- 1500
1200 ---- 1100
1900 ---- 0
what is sql query
modified on Wednesday, September 2, 2009 2:39 AM
|
|
|
|
|
You need and inner join a group by and a sum
Select FeeID, sum(payable), sum(paid)
from Fee
iner join Fee_detail FD on FD.fk_fee = fee.FeeID
group by
FeeID
|
|
|
|
|
I want to fetch all records of left hand side
and only sum of 'paid amount' matching records of child table(right hand side) according to fk_fee(foreign key column)..
for example
Fee table:
Pk ---- payable
1 ---- 1500
2 --- 700
Fee Detail:
Pk ---- Paid ---- fk_fee
1 ---- 1100 ----1
2 ---- 200 ----1
3 ---- 100 ----1
Result should be
payable ---- paid
1500 ---- 1400
700 ---- 0
|
|
|
|
|
Then you need to use a left join and deal with null values
Select FeeID, sum(payable), sum(ISNULL(paid,0))
from Fee
left join Fee_detail FD on FD.fk_fee = fee.FeeID
group by
FeeID
search here for articles on joins, there is a good one around, sorry I don't have a link
|
|
|
|
|
Below is the query for your requirement. You need to group by each field that you want in the select statement.
SELECT Fee.Payable, ISNULL( SUM(Fee_Detail.Paid) ,0)
FROM Fee Left Outer Join Fee_Detail ON Fee.PK_Id = Fee_Detail.FK_Id
Group By FK_Id, Fee.Payable
Hope it helps you.
|
|
|
|
|
|
You need to be a little more specific and generous with information when asking a question. I would be nice to know what type of control you are using, I will assume a combobox.
Have you tried searching for a solution - this is a VERY common requirement and there are plenty of examples. Basically you bind filter of the city combo to the selected value of the country combo, repopulating the city combo in the onselected index change event.
|
|
|
|
|
Something like this:
select * from cities where stateid in (select stateid from states where statename='statename')
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Hi dear all,
I am new to database design and database structure, In my internal test i faced one database design problem, tried to solve this but i am still having doubts so please experts give me clear solution for this
Problem is
Media bank is a web application for storing and retrieval of Media files. In Media bank, files are stored in folders (just like in the case of windows). A folder can have sub-folders to any level of depth. A file in a folder can exist either in published or un-published state.
Every folder will have the following information associated with it: folder name and folder description.
Every file will have the following information associated with: file name, file description, physical location in server, size in kbs, type of file.
1. Write a normalized database design for the above mentioned scenario. Also show primary keys, foreign keys, and also what kind of relationship (1-M , M-1 or M-M) exists between them.
2. We add a new feature to Media bank: A file can contain different versions, but only one version will be active at a time. Any version of a file can be set to active by the administrative user.
Modify the database deign above to incorporate this new feature.
3. Write SQL Query to retrieve
a. All files of type ‘images’ with the following information:
File name, File description, state of file (unpublished/published), Folder name, Folder description.
b. All folders with following information:
Folder name, Number of files in published state in that folder
c. All files with following information
File name, complete folder path (all parents until root folder)
Thanks in advance
|
|
|
|
|
Please leave fill out the following to get a valid response.
Educational Institution:
Course Enrolled:
Instructor Name:
Contact Number:
|
|
|
|
|
Hello all!
This seems pretty simple, but I'm still stuck. Probably making it more complicated than it is. I have a tblPot, with Monday, Tuesday, etc as Columns. I need to return the Pot of the week based on todays date.
I'm getting the day of the week from SQL with the DATENAME function. But how can I pass that to match the column name. Basicly I need this simple statement.
SELECT Potname FROM tblPot WHERE Monday = 'true'
How can I get it so it grabs the current day automaticly. Thanks!
Rudy
here is the code
ALTER PROCEDURE [dbo].[SchedPod]
-- Add the parameters for the stored procedure here
@Day nvarchar(50) Output,
@PotList nvarchar(50) OUTPUT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
select @Day = DATENAME(dw , getDate())
SELECT @Potlist = PotName
FROM tblPot
WHERE (@Day = 'true')
END
|
|
|
|
|
Unfortunately the table definition you have makes it quite difficult to get the result you want based on the current day.
However, after saying that there is still a solution to use UNPIVOT.
The idea is to change your day columns (Monday, Tuesday) to a row value, then query the result of the UNPIVOT.
See UNPIVOT[^]
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|