Don't know how to handle this relationship
I am a college student and am having a hard time wrapping my head around the database I have to work with for a project. The project entails implementing an auto parts application. I have not encountered a relationship like this before. I have linked to a document I made to describe the table. It can be found here: http://91.121.116.152/graph.pdf. There are basically 4 tables in the database. There is 1 table for all the automakers. (MAKER). Then, there are many tables in the form of APL___ where ___ is a column for the MAKER Table. The APL tables contain all the different models and links to the different parts. The column RLINK references RADCRX which contains 16 different columns. Each set of 4 columns contains part numbers that link to a RAD___ (where ___ is a 3 letter abbr for a vendor).
I've done my best to explain it in English, but I think the document may help. Naturally the assignment is to find parts for a specified car. My problem is how do I do this as effciently as possible? I don't know how to handle a relationship where column name points to a table name, not a column in the table. It could be done with a very long join such as
SELECT * FROM RADMOD, RADCRX WHERE RADCRX.MOD1=RADMOD.P_NUMBER
or so on for each column in RADCRX. This doesn't seem right. I thought about doing joins on the tables, but I don't know how to do it. The DB as about 20K records. Does anyone have any insight?
Try the ff solution if it works:
1.)Create a union view for APL_ _ _
create or replace view v_APL_ALL as
select a.*,'CHE' m_code from APLCHE a
union all
select b.*,'TOY' m_code from APLTOY b
union all
select b.*,'HON' m_code from APLHON b
union all
select c.*,'MIT' m_code from APLMIT c
2.)Create a view for v_APL_ALL and MAKER
create or replace view v_APL_ALL_MAKER as
select a.*,b.M_NUMBER,b.MAKER
from v_APL_ALL a,MAKER b
where a.m_code=b.m_code
3.)Create view for RAD_ _ _
create or replace view v_RAD_ALL as
select a.*,'ARS' VENDOR_CODE from RADARS a
union all
select b.*,'MOD' VENDOR_CODE from RADMOD b
union all
select c.*,'BEH' VENDOR_CODE from RADBEH c
union all
select c.*,'DAN' VENDOR_CODE from RADDAN c
4.) Create a view for v_RAD_ALL and VENDOR
create or replace view v_RAD_ALL_VENDOR as
select a.*,b.M_NUMBER,b.MAKER
from v_RAD_ALL a,VENDOR b
where a.VENDOR_CODE=b.VENDOR_CODE
You can now join them & query it.
Regards,
Benjie
Similar Messages
-
I´ve bought a wrong app. It´s for an I-pad and I have an I-pod. Now I want to give it back and I don´t know how to do this.
Sorry Noel, but according to Apple, all sales are final > iTUNES STORE - TERMS AND CONDITIONS
-
At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
== This happened ==
Every time Firefox opened
== Several weeks ago.See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
Remove the files in the ''updates'' and ''updates\0'' folder:
Vista/Windows7:
C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
C:\Users\<user>\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
%LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\ -
My iphone dosen't doesn't make key tone sounds anymore when I write a text message or when I want to dial a phone number I don't know how to fix this problem, I don't hear the clicking noise anymore does anyone know how to fix this problem?And all the sounds on my phone are on, even the keyboard clicks.
Try restarting your iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo, double check the volume button just in case. If you still can't hear the tones go into your settings>sounds and make sure the options are on.
-
I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?
Heya Katie!!
So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!! -
Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance
You do realise that wiping the disk means that everything on the disk is erased. Everything. Photos, music, emails, ...
So the first piece of advice is to make sure you have a back up of everything.
You need the OS disk to reintsall the operating system. You will use that disk first to erase the drive, then to reinstall the OS.
Here's the link for the US. http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
As for MS Office, you will need the original disk that it came on to reinstall it. -
My computer sees the auto duplexer on my Epson Stylus PX720WD but iworks says it is not installed. I have contacted Epson and I have the impression that they don't know how to solve this problem. Anyone got any ideas?
If you print to PDF first, and then print it from Preview does it work?
-
Can't delete images with adobe bridge for days , don't know how to fix this ? Can you help please ?
Thank you so much for sharing
-
My app store doesn't download anything i don't know how to fix this problem
my app store doesn't download anything i don't know how to fix this problem
Can't believe it was that easy... I'm so dumb! Thanks for your help, I was getting so aggravated! I owe you... Thanks again!
-
I honestly don't know how to describe this.
You see, I am a youtube who specializes in a thing called youtube commentaries, where we show the viewer a bad video and interject why it is wrong with pictures, usually putting in effects and jokes to entertain. I bought a creative cloud subscription with premiere because I thought the price was good and needed a new editor. I put in my first video I was commentating on at the time and it turned out fine. then I put my picture or avatar in the timeline, and the picture ended up huge, so big that I was barely able to see the picture in the preview screen, so with that I scale down my picture so that I could see it in the preview screen, and it worked well from there. until I exported and posted it onto youtube, where the pictures were only half the screen instead of full screen like they should be. I wanna know what is going on, I think it involves sequences but I don't know how to fix this or why it is happening.
One thing that works for may people is to size their pictures to match their editing BEFORE importing into a timeline
Photo Scaling for Video http://forums.adobe.com/thread/450798 may help
CS5-thru-CC PPro/Encore tutorial list http://forums.adobe.com/thread/1448923 may also help -
I forgot my security questions and it says Forgot your answers? : Send reset security info email to n•••••@live.fr, but it is not one of my email adress and I don't know how to changes this, can anyone help please ?
I want to buy an app but I can't without these answersYou need to contact Apple. Click here, phone them, and ask for the Account Security team.
(87765) -
Incorrect Password is auto. Entered and i don't know how to stop this.?
When I open a certain page on Safari an incorrect password is automatically entered and i don,t know how to stop this from happening.
I just delete and reenter, but this is a pain. How can i fix this?
alSettings>Safari>Autofill>Clear all. You will have to start over again with all of your passwords.
-
Help, I don't know how to solve this...
Hello People, srry for other threat but it's an emergency because I need to finish this program and I couldn't solve the problem
I add a picture that you can see the graph and the table...but there is a problem in a table 00 00 00 00 01 01 01 I only want to take samples every 0s, 1s, 1.5s ..
And I don't know how to do this. Another problem is the "hold", I put this button to stop the while loop and the table and then use save to excel but it doesn't work this button.
sorry..people but I need help...and the other threats nobody help me
Attachments:
capacitor.png 104 KB
capacitor.vi 2008 KBjocuma wrote:
Maybe yes..But I don't have time..
It will take less time than sitting and waiting for multiple answers to walk you through it step-by-step, especially overnight (which, for me, starts now). Once you've gone through these, maybe the help screens in LabVIEW and all the knowledge base stuff, whitepapers, etc. on the NI website will make more sense.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ -
A window appears ,about 4/5mins intervals,during Freecell game and I don't know how to rid this irritating intrusion .The window box states "item not available from UK store" ,presumably referring to a previous requested app! It's funny how this window manages to hit the Freecell screen.Can anyone kindly advise how I might get rid of it!!
A window appears ,about 4/5mins intervals,during Freecell game and I don't know how to rid this irritating intrusion .The window box states "item not available from UK store" ,presumably referring to a previous requested app! It's funny how this window manages to hit the Freecell screen.Can anyone kindly advise how I might get rid of it!!
-
How do I turn on the notification for pop-up blocker? I accidentally clicked the option saying "do not show this notification again." I want the notification so I have the option of seeing the pop-up or not, but don't know how to turn this back on.
Type "about:config" in the location bar.
Filter for "privacy.popups.showBrowserMessage"
Change this to true by double clicking the preference (or right click and choose Reset)
Maybe you are looking for
-
safari, chrome and firefox cannot verify identity of secure websites after upgrading to 10.7.4, apple engineers have tried multiple things including operating system with no success
-
Copying Folder to Multiple User Document Folders
I can't find anything in the forums which exactly covers my situation, so I apologize if I am covering old ground. Is it possible to copy a folder and it's contents to a users document folder on multiple computers via ARD 2.X? In other words, I want
-
Where can I find the USB driver for the serial to USB adapter?
I have a Palm IIIc with the serial HotSync cradle and USB adapter but I dont have the driver disc for it and was wondering if there was a page within the site here I could download it from? The OS platform needed for the driver is Win2000 / XP. TIA,
-
New error message in mail--what is going on?
Yesterday the triangle with ! started appearing on one of my sent mailboxes (the main me.com one). This is the message: "The Sent mailbox could not be created on the mail server. The local "Sent Messages (XXXXXXX)" mailbox was created instead. Mail
-
Hii :) I'm bit new to oracle apps, just wondering if anyone can help me to learn SCM module(i.e,PO,OM INV). Actually, i want to know how i can learn or practice INV, OM, PO module. Any help will b appreciated. Regards Royal