473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Relazione in base a caratteristiche comuni

Buongiorno a tutti, ho un piccolo problema ma grande per me poco
esperto. Forse è un mio errore di impostazione del DB, o non vedo la
relazione nell'ottica giusta o magari semplicemente mi sono perso in un
bicchier d'acqua ma....

ho un file fornitori, con una tabella "fornitori" che contiene i campi
anagrafici del fornitore come:
-ID fornitore (Chiave primaria)
-Nome
-pIva
-Indirizzo

Ogni fornitore ha una tipologia diversa: uno è albergo, l'altro
ristorante, ecc.
quindi ho creato delle tabelle "albergo", "ristorante ", Ecc. che
contengono nei campi, oltre a una chiave primaria, le info essenziali e
specifiche per ciascuna tipologia. (tipo nella tabella albergo "N°
stanze" e "distanza dall'arepoprto" )

Come le metto in relazione? le relaziono direttamente? Creo una tabella
di collegamento "tipologie" ?

Grazie davvero per qualsiesi aiuto!!! e a buon rendere...

Nov 21 '06 #1
1 1544
Filippo:

Ho trasmesso una copia di una base di dati di esempio al vostro email.

Buona fortuna!

Alexandre Bejerman
Montreal, Canada

Plume wrote:
Buongiorno a tutti, ho un piccolo problema ma grande per me poco
esperto. Forse è un mio errore di impostazione del DB, o non vedo la
relazione nell'ottica giusta o magari semplicemente mi sono perso in un
bicchier d'acqua ma....

ho un file fornitori, con una tabella "fornitori" che contiene i campi
anagrafici del fornitore come:
-ID fornitore (Chiave primaria)
-Nome
-pIva
-Indirizzo

Ogni fornitore ha una tipologia diversa: uno è albergo, l'altro
ristorante, ecc.
quindi ho creato delle tabelle "albergo", "ristorante ", Ecc. che
contengono nei campi, oltre a una chiave primaria, le info essenziali e
specifiche per ciascuna tipologia. (tipo nella tabella albergo "N°
stanze" e "distanza dall'arepoprto" )

Come le metto in relazione? le relaziono direttamente? Creo una tabella
di collegamento "tipologie" ?

Grazie davvero per qualsiesi aiuto!!! e a buon rendere...
Nov 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
5859
by: Dick Moores | last post by:
I need to figure out how to compute pi to base 12, to as many digits as possible. I found this reference, <http://mathworld.wolfram.com/Base.html>, but I really don't understand it well enough. Could someone show me how to do what I need? Thanks, Dick Moores rdm@rcblue.com
0
2838
by: Berserk | last post by:
Sapeto dove posso trovare una tabella sql con l'elenco di tutti i comuni magari aggiornata al 2003? Cerco una versione che contegna questi campi: Codice, Denominazione, esistenza, targa_provincia, cap, prefisso, codice_istat, codice_imps, Codice_Info_Camere, Codice_CPI So della sua esistenza perché ho un cliente che la possiede e non la vuole dare. Vi ringrazio anche se temo che molti di voi ignoreranno questo msg.
2
1547
by: Stephan Br?nnimann | last post by:
Dear all thanks to Scott Meyers (ME C++, item 33) we know assignment operators should be protected in the base class. Is there a common pattern (similar to virtual construction via `clone()') that allows me to have the following: (std::auto_ptr and covariant returns omitted for simplicity.) class Base {
6
2822
by: Paul | last post by:
In real life situation, do we ever come across a situation where we would need two base objects in an object. A snippet is worth 1000 words (: so... class Base { }; class Derived1:public Base { };
7
1519
by: Jef Driesen | last post by:
Suppose I have an abstract base class that looks like this: template <typename T> class base { public: // Typedefs typedef double value_type; typedef std::size_t size_type; public: // Assignment operators. virtual base<T>& operator=(const base<T>& rhs) = 0;
7
6606
by: Baski | last post by:
Base class: class AssetBase { string _clli; public string CLLI { get
5
3150
by: Andy | last post by:
Hi all, I have a site with the following architecture: Common.Web.dll - Contains a CommonPageBase class which inherits System.Web.UI.Page myadd.dll - Contains PageBase which inherits CommonPageBase - Contains myPage which inherits PageBase Each of these classes overrides OnInit and ties an event handler
1
1475
by: miben | last post by:
I want to create a new inherited class givin its base. For example: class Base { public: void operator =(const Base &base) { // copy base items } }; class Inherits: public Base {
0
1272
by: After | last post by:
è possibile reperire da qualche parte un database con la lista completa dei comuni italiani con il relativo cap?? ( e se possibile col codice catastale) grazie!
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8035
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.