LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2002, 11:55 AM   #1
GrayLOK
LQ Newbie
 
Registered: Jul 2002
Location: Sydney
Distribution: Redhat 7.1
Posts: 12

Rep: Reputation: 0
Database query?


Hi all,

I am a newbie so please forgive if this seems incredibly simple.

Ok, this is the situation. I have two excel sheets and a folder with images what I want to do is combine all the data. Both sheets have duplicating data i.e. names publishing dates and more. Currently a user uses one sheet to find out a corresponding book jacket. It happens that the ISBN is used to find the jacket pic. Both sheets hold ISBN info, and the images in a folder on their own are named with ISBN numbers … can you see where I’m going?

My goal is to create a database (Mysql) that if certain data is input to search against i.e. ISBN, or Author it will pull info and the cover pic. Does this make sense?
I know I have to run a query against ISBN or something and some how create a new table but where do I start?

Can anyone guide me on this quest to link pic with ISBN numbers...?

CHeers and a BIG Thanks in advance
 
Old 08-10-2002, 01:15 PM   #2
islandkid
Member
 
Registered: Mar 2002
Location: Victoria, BC, Canada
Distribution: None (www.linuxfromscratch.org)
Posts: 103

Rep: Reputation: 15
just make a table like this:

CREATE TABLE info (Name CHAR(100) NOT NULL, ISBN CHAR(30) NOT NULL)

where info is the table name and Name and ISBN are the names of columns in the table.

then you can call the information like this:

SELECT Name FROM info WHERE ISBN='the ISBN #'

you'll have to open the image and display it with whatever script you are using to display the info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snort database: Closing connection to database "" Homer Glemkin Linux - Security 2 07-14-2005 06:58 PM
query saurabhparihar Linux - Newbie 2 05-21-2005 02:00 PM
write an update query in shell prompt to update the database in sqlserver suchi_s Programming 2 09-29-2004 07:27 AM
X -query pacman23 Linux - Software 2 07-22-2004 07:16 AM
query DNS and create mysql database nabil Programming 0 01-18-2002 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration