search for: tablea

Displaying 13 results from an estimated 13 matches for "tablea".

Did you mean: table
2006 Jul 14
3
compare two tables and find the difference?
I need to compare a column in TableA to a column in TableB and then select 3 columns from TableA for all the records in TableA that don''t exist in TableB. TableA and TableB are different but do have one field in common that i am comparing. The tables are not related in anyway. right now I have a find_by_sql query located...
2010 Aug 19
1
Composite primary keys and :joins=>
...B: # each row has only the code as a foreign_key, the type_key is hard-coded to "FOOKEY" an_id, code, ... Models: class TableB < AR::Base set_table_name ''table_b'' set_primary_key :an_id # singular PK belongs_to :code_name, :class_name=>''TableA'', :primary_key=>:pk_code_name, :foreign_key=>:code SELECT = "*, table_a.name AS pk_name" def self.get_all all(:select=>SELECT, :joins=>:code_name) end end class TableA < AR::Base set_table_name ''table_a'' set...
2010 Sep 22
1
agregar valores a una tablea de SQL
Hola a todos Estoy aprendiendo a trabajar con el paquete de RMySQL, y a la vez con bases SQL, así que a lo mejor no es tan complicado. Quiero agregar valores, que genero en R, a una tabla de SQL más o menos la idea es: > ssql<-"INSERT INTO tabla1 (variableA, variableB) VALUES (''valor1'',''valor2'')" > dbSendQuery(conec, ssql) pero
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find them. However, i''m trying to fix this one, i cant seem to get it to work. I have two tables A and B that have a one-to-one relationship. Table B belongs_to Table A. Table A has_one Table B. I''m creating instances of Table A in different places, depending on the controller. However, for each
2006 Feb 23
9
Balancing multiple connections and NAT
...s to SNAT traffic to the appropriate IP depending on the interface the packet gets routed onto. The setup looks something like this: Interface IP Gateway Table Network --------- -- ------- ----- ------- intA ipA gwA tableA netA intB ipB gwB tableB netB intC ipC gwC tableC netC [intD is the LAN interface] intD ipD (private) no gateway global netD This works fine most of the time, except that once in a while (every 5-10 minutes or so) packets go...
2012 Mar 29
2
subtract a list of vectors from a list of data.frames in an elegant way
...rames. In my real life example DBquery is considerable longer so defining that by hand would make a really really long syntax. Hope someone know some smart function that I can use to solve my problem in an elegant way. Thanks for reading. Erick ###### begin R code ###### DBquery ? ? <- list(tableA=data.frame(id = numeric(0), atwin = numeric(0), atrout = numeric(0)), ? ? ? ? ? ? ? ? ? ?tableB=data.frame(id = numeric(0), mq ? = numeric(0), z = numeric(0), m = numeric(0)), ? ? ? ? ? ? ? ? ? ?tableC=data.frame(V1 = numeric(0), mfn ? = numeric(0), iiff = numeric(0)), ? ? ? ? ? ? ? ? ? ?tableD=...
2006 May 15
0
Insert database into two tables.
Hi All, I have problem with inserting new record into the database. I have a form has 4 fields, and two fields will be inserted into tableA, and other fields will be inserts into tableB. These two tables has relationship tableA(One) and tableB (Many) ...so how could I do that? Socheat Yi Web Programmer/Software Developer Screened Images Multimedia (SIM) *If You Can Imagine It...We Can Create It. -------------- next part ----...
2004 May 24
1
RMySQL problem
...Ql INSERT INTO statement that deals with several rows at once to insert a complete data.frame into a table. I've tryied to use "paste" to build the sql string but It works "by column" and I need it "by row" ... The sql systax should be something like: INSERT INTO TABLEA(COL1, COL2, COL3) VALUES (VAL11, VAL12, VAL13), (VAL21, VAL22, VAL23), ... (VALN1, VALN2, VALN3); and I have a data.frame with 3 columns corresponding to that table columns. How can I do this ? Thanks EJ
2007 Jul 30
3
SortHelper problem
I have TableA with name, description, start time displayed on one page. TableB has name, comment, file path and is displayed on another page. I''m using the SortHelper2 helper to help me sort the columns of these tables, however I''m experiencing a problem whereby if I sort TableA by descriptio...
2005 Dec 02
1
Bug with Postgres and/or HABTM?
Hello list, I think I''ve found a bug in the way Rails is talking to my Postgres DB when recording HABTM data. My join_table looks like this: id serial primary key, tablea_id integer references tablea(id), tableb_id integer references tableb(id), other_attributes... When Rails writes to join_table, I''d expect it to do something like: INSERT INTO join_table (tablea_id, tableb_id) values (123,456) or maybe INSERT INTO join_table (id, tablea_id, tableb_id) val...
2004 May 25
0
RMySQL problem - SOLVED
..."paste" to build the sql string but It works "by column" and I > >>>>> need it "by row" ... > >>>>> > >>>>> The sql systax should be something like: > >>>>> > >>>>> INSERT INTO TABLEA(COL1, COL2, COL3) VALUES > >>>>> (VAL11, VAL12, VAL13), > >>>>> (VAL21, VAL22, VAL23), > >>>>> ... > >>>>> (VALN1, VALN2, VALN3); > >>>>> > >>>>> and I have a data.frame with 3 columns corre...
2008 Feb 01
4
Concatenate a Variable
Good morning! I do not speak English very well and so I will try to explain the best I can. I have this: > tabela[,1] [1] a a b b a c b a c c c c c Levels: a b c >unique(tabela[,1]) [1] a b c Levels: a b c >var<-unique(tabela[,1])[1] > var [1] a Levels: a b c But if I concatenate like this > cat("VAR: ", var, "\n") I obtain >VAR: 1 and I
2005 Dec 21
10
can an active records maps to N tables?
Hi, Is it possbile that one active record maps to N tables, actually the relation is 1 to 1, I wonder it is possible. also can a ruby object map to N tables, instead of an active records? Thanks you very much:) Saiho __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com