Questions tagged as 'sql'

1
answer

Read JPEG image, convert it to PDF and save to disk - Visual Basic 6

I'll create a button, which when I click it, it reads a JPEG image and can convert it to PDF and save to disk. I would like a hint in source code so I can start this project. Thank you very much.     
asked by 13.03.2015 / 20:58
1
answer

Look for interlaced ID (which is mutual), sql mysql

I have a table of this format RELATIONS ----------------- ID | ID_1 | ID_2 All in INT and ID is auto incremental. It is filled in this way: ID | ID_1 | ID_2 ----------------- 1 | 1 | 5 ----------------- 2 | 5 | 1 --...
asked by 02.07.2015 / 19:10
1
answer

SQL Query returning duplicate records

I have a BIG problem in a SELECT: I have two Tables' adwords_performance 'and' analytics_transaction 'and I need to do a SELECT by adding columns' adwords_performance.clicks ', '< strong> adwords_performance.impressions 'and' analytics...
asked by 19.03.2015 / 21:16
3
answers

How to select information from a table without duplicate values

Let's say I have a table named ALUNOS , with 3 columns, ID , NAME , SOBRENOME And I want to get all the names, but in a way that does not double if one student has the same surname as another student.     
asked by 03.06.2015 / 19:23
1
answer

Relationship Tables

I have a Endereco table that serves both Funcionario and Vendor: 1 Funcionario possui 1 Endereco 1 Fornecedor possui 1 Endereco How do I create this relationship without having inconsistencies?     
asked by 03.03.2015 / 22:30
1
answer

Make a select in a varchar column as if it were SQL datetime

The code is as follows: SELECT data FROM lista WHERE data BETWEEN '01-08-2015' AND '05-08-2015'; The problem is that the date column is a varchar and I would like to use it as a date     
asked by 05.08.2015 / 20:58
1
answer

Regular Expression Problems

I have the following beginning of function sql that I will use for a procedures / function recreation system in C # Create Function dbo.JN_FN_DataAtual(@TESTE INT) And I created the regular expression (?si)\bCREATE\s*\bFUNCTION?\s*(?&l...
asked by 14.08.2015 / 04:16
1
answer

Save input field to the database

How to store the last 100 searches made to a site (PHP / MYSQL) divided by country (eg store the last 100 searches for Macedonian books). Search is a simple simple field: <input type="text" id="search" name="search" placeholder="Search" /&g...
asked by 29.04.2015 / 14:30
1
answer

Logical deletion of SQL Server records

We have the culture to only make logical exclusions in the application, maintaining 2 fields where 1 is the deletion date and another one that receives 'S' or 'N'. When we perform searches for undeleted records, we do something like: select...
asked by 13.02.2015 / 00:52
1
answer

Update with JOIN in MySQL

I'm making an update to table A which will receive values from Table B as a.codigo = B.folha When running the routine below, it is slow and nothing happens for a long time. There are 500,000 lines. It's normal or I have to wait or the...
asked by 02.02.2015 / 06:02