composite-key Questions

1

Solved

I'm asking and answering my own question, but i'm not assuming i have the best answer. If you have a better one, please post it! Related questions: How to set a backreference from an @EmbeddedId i...
Friendly asked 25/8, 2011 at 19:19

2

Solved

I am using DB2 DBMS. Scenario 1: myTable has a composite key (key1, key2) where both key1 and key2 are foreign keys from yourTable. I want to insert new data from yourTable into myTable, but onl...
Opsis asked 22/8, 2011 at 12:8

5

Solved

create_table :categories_posts, :id => false do |t| t.column :category_id, :integer, :null => false t.column :post_id, :integer, :null => false end I have a join table (as above) with ...
Coda asked 19/5, 2009 at 4:30

2

Solved

I am trying to figure out how to have a composite key using EF code First 4.1 RC. Currently, I am using the [Key] Data Annotation, but I am unable to specify more than one key. how would one spec...
Onanism asked 28/3, 2011 at 23:53

1

I have a composite key in a database table / NHibernate entity. Can I somehow use the .Get method to grab a specific entity or do I have to use HQL / Criteria due to the composite key?
Constabulary asked 16/2, 2010 at 17:40

3

Solved

I have a couchdb view "record_by_date_product" with the following definition: function(doc) { emit([doc.logtime, doc.product_id], doc); } I am trying to run a query which is something like: (l...
Admeasurement asked 13/1, 2011 at 13:48

2

Solved

The re-design for a large database at our company makes extensive use of composite primary keys on the database. Forgetting performance impacts, will this cause any difficulties when working with ...
Cos asked 18/12, 2009 at 0:57

6

I have a column in my DB that is set with Identity(1,1) and I can't get hibernate annotations to work for it. I get errors when I try to create a new record. In my entity I have the following. @E...
Biggers asked 25/5, 2010 at 14:36

3

Solved

I'm upsizing a Jet database to SQL Server Express 2008 R2 and before doing so, I'm re-evaluating the schema (it was designed in 1997-98, and the guy who designed it (i.e., me) was something of a mo...
Burnell asked 31/8, 2010 at 20:46

4

Solved

How can I create a composite key on multiple columns, one of which can have some value but not null (or some constant value)? For example: PK Loc_ID Date Time Cancelled 1 1 01/01/2010 10:00AM YES...
Cuprous asked 30/7, 2010 at 15:1

1

Solved

I was playing with EntityFramework CTP4 and decided to apply it to one of my current projects. The application uses a SQLServer database and there is one table with a composite key. Say, table "MyE...
Convoy asked 21/7, 2010 at 12:39

1

Solved

So I have this table with a composite key, basically 'userID'-'data' must be unique (see my other question SQL table - semi-unique row?) However, I was wondering if it was possible to make this on...
Photophilous asked 13/1, 2010 at 14:16

3

We have a table with a composite Primary key consisting of three fields (and it is in MySQL 5.1). There are near 200 inserts and 200 selects per second on this table, and the size of the table is a...
Gnathion asked 22/9, 2009 at 14:34

2

Solved

I cannot understand the syntax error in creating a composite key. It may be a logic error, because I have tested many varieties. How do you create composite keys in Postgres? CREATE TABLE tags (...
Ethnomusicology asked 17/8, 2009 at 2:36

1

Solved

I have a data structure which uses composite ids (Which I dont wish to change to single) Everything loads fine except for many-to-one joins which if the join is empty, instead of mapping the proper...
Suiting asked 12/1, 2009 at 13:0

© 2022 - 2024 — McMap. All rights reserved.