Displaying 20 results from an estimated 100 matches similar to: "agregar valores a una tablea de SQL"
2012 Mar 06
1
Extracting data from a zoo by date
Dear all,
I know that it is a silly question, but I have a zoo object like this:
valor1 valor2
01/02/08 36.7381 17.0097
01/03/08 36.9296 16.8331
01/04/08 35.6934 16.3539
01/07/08 35.3539 16.3791
01/08/08 36.3811 16.9340
01/09/08 37.9220 17.6655
The name is nuevo.zoo and I need to extract the data for a giving day, for
example for 01/03/08 and for the
2006 Jul 30
3
Accessing @org.id yields internal number, not record id
With apologies, I can''t figure out the simplest thing: How to reference
a record id instead of the internal memory location of that value. I''m
new to Ruby but otherwise a veteran VB6/SQL programmer.
My code:
<snip>
sSQL = "SELECT id, org_name FROM organizations WHERE user_id =
''#{sUserId}'' AND user_password =
2008 Aug 12
1
[RODBC] date attribute in sqlQuery
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery,
and these arguments
are defined in my function.
Here is my function:
GetReturn<-function(code,date)
{
channel<-odbcConnect("db","user1","password")
ssql<-paste("select * from TABLE Where PF_CODE =",code,"and PF_DATE=",date)
2019 Jan 04
2
Función mosaicplot() con alpha segun valor.
Feliz año a todos!
Y al que sepa y tenga tiempo, una duda:
Quiero hacer un análisis de distribución de léxico (supongo que da igual
eso) mediante mosaicplot(), en particular me interesa que me muestre el
peso de la distribución según una proporción que ya conseguí sacar; la de
el uso de x termino en un espacio determinado.
Ejemplo:
Distribución de los términos, totales (tabla1)
sitio1
2016 Jul 10
2
Cruce Tablas
Hola a todos. Tengo estas dos tablas de aqui (tabla1 y tabla2 la de abajo) aunque estan sin datos
| FECHA ALQUILER | FECHA DEVOLUCION | PELICULA | DIRECTOR | CLIENTE |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| FECHA | CLIENTE | DIRECCION | NUMERO SOCIO | CIUDAD |
Quiero cruzar ambas tablas en función de las fechas para ver los datos coincidentes
Puedo hacerlo
2018 Mar 02
3
Problemas de conexion con base de datso
Buenas,
Tengo un problema y es que intentando conectarme a una base de datos SQL Server, tras cosneguirme conectarme usando el paquete odbc, me deja acceder al contenido de algunas tablas (mediante un select), pero sin embargo en otras me pone lo siguiente:
Error in new_result(connection en ptr, statement) : std::bad_alloc
No entiendo muy bien porque me salta ese error, ya que desde SQL si
2011 Oct 04
1
joining tables
Hello everyone,
I know this is very basic question for you people. I'm working with mani diferent tables, but everyone has the same variables. (V1, V2, V3). The only think that I need to do is to put together this tables. In other words, creating just one big table with all the cases showed in the smaller tables.
For example:
tabla1<-data.frame(v1,v2,v3)
tabla2<-data.frame(v1,v2,v3)
2009 Jul 15
1
loading multiple .Rdata and preserving variable names
Dear R-users,
I need to load outputs from multiple previous calculations into one R
session for comparison and (cross-)analysis. The previous calculations are
stored in different directories in .Rdata files (I don't know if this is the
best storage for later usage, but the previous project could be recalculated
and saved into different format, if needed, potentially.)
I can load consequently
2018 Mar 02
2
Problemas de conexion con base de datso
Perdon, corrijo, es justo eso...
En cuanto hay uan cadena de tipo varchar falla. Es por temas de codificaciones en el driver. ?Como cambio la codificacion?
Un saludo
Jesus
________________________________
De: David Luna <ofc587a87 en gmail.com>
Enviado: viernes, 2 de marzo de 2018 15:02
Para: Jes?s Para Fern?ndez
Cc: r-help-es en r-project.org
Asunto: Re: [R-es] Problemas de conexion con
2018 Mar 02
3
Problemas de conexion con base de datso
Buenas
El problema es el tipo dr columnas. Haynun bug q hace que haya q mostrar el tipo de columna mas largo al final de la consulta...
Es un bug de los odbc de Windows..
Gracias
Jes?s
Obtener Outlook para Android<https://aka.ms/ghei36>
________________________________
From: Javier Marcuzzi <javier.ruben.marcuzzi en gmail.com>
Sent: Saturday, March 3, 2018 12:02:10 AM
To: Jes?s
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 in a model that looks like
this:
def self.absent_charges
2010 Aug 19
1
Composite primary keys and :joins=>
I have a legacy db with the following simplified structure:
Table-A:
type_key, code_key, name, ... # PKs are type_key and code_key,
there is no id col and I cannot alter this db
Table-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''
2012 Feb 14
0
Agregar scatterplot a stat_contour con ggplot2
Estimados:
Estoy entrampado con el siguiente problema.
Poseo un dataframe (f), con datos x, y, z, los cuales no son coordenadas ni
alturas, sino niveles de tres variables cualquiera.
Lo que busco es presentar en un gráfico es: a) el scatterplot de las
variables ''x'' e ''y'', y además b) las isolineas de ''z'' para los distintos
niveles de
2005 Sep 21
0
HOWTO: A simple AGI application to modify incomi ng CallerID on the fly using SQL Server and *not* UnixODBC
Requirements:
1. http://sourceforge.net/projects/odbcsock
2. The SQL server must be in the same subnet as your * server
Howto:
1. Install ODBCSocketServer on your SQL server and verify connection with
the included VB COM app from a Windows box.
2. Decide how you want to transform the Caller ID. In my case, I want to do
a lookup of the CallerID number in SQL server and prepend the Caller ID
2018 Oct 22
2
Agregar variable entre dos fechas
Buenas,
Tengo un dataframe con 64.000 observaciones llamado Datos y las
variables "Id.Producto","Fecha"y "Rating" . La variable fecha tiene el
formato: 2016-12-28 (ymd). Quiero crear la variable:
"Rating.Semanal" - Esta variable tiene que ser la media agregada por
"Id.Producto" de la variable "Rating", solo teniendo en cuenta
2013 Dec 04
0
agregar meses con compras 0 cuando no aparece mes por no. de cliente
Sebastián
No se para que vas a usar los datos, pero yo no usaría ceros cuando el dato
no esta disponible ( me saltearía el último paso de la rutina que te
mando). Seguramente hay mejores y mas eficientes maneras de hacerlo en R
pero esta es una quizás no muy elegante:
original <- matrix( c(1 ,1 ,1,
1, 223, 2,
1, 224, 3,
3, 447, 1,
78, 335.75, 8,
2901, 186.3, 2,
2901, 886.18, 3,
2901,
2018 Mar 01
2
Agregar variable ponderando con otra
Buenas tardes,
Estoy intentando conseguir la media de la variable "numerocaracteres" por
"producto" de mi base de datos, datos. Lo estoy haciendo con la función
aggregate de este modo:
AggregatedData<- aggregate(numerocaracteres ~ producto,
data=datos, FUN=mean)
El problema me viene porque quiero utilizar una variable de ponderación de
modo que para construir la media
2015 Feb 02
2
Agregar variables
Hola a todos, a ver si me pueden echar una mano que estoy atascado.tengo estas dos tablas:
> head (intento1) codigo categoria talla num1 1 904 400 12 1 904 460 13 1 904 470 44 1 904
2017 Jun 12
2
Agregar a un data.frame de manera automatica
Buenas,
Tengo un monton de variables que quiero meter en un data.frame.
Las variables las he ido extrayendo de la siguiente manera
for(i in 1:240) {
#saco el inicio de cada refrigeracion
aux1 <- paste("inicio.refri", i, sep = ".")
assign(aux1,datos[which.max(datos[,109+i]),"LogDateTime"])
}
Y quiero buscar una funcion que me permita meter esas 240
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