text
stringlengths
6
9.38M
create table dnaseqs.table1( id INTEGER NOT NULL, geneName VARCHAR(20) NOT NULL, sequence VARCHAR(20) NOT NULL, PRIMARY KEY (id) ); INSERT into dnaseqs.table1 values (1, 'Test1', 'AlsoTestOne');
DELETE FROM tabela WHERE dbid = <dtml-sqlvar artigo type=int>
ALTER TABLE chat.materialized_messages SET TABLESPACE chatapp_ssd; ALTER TABLE chat.materialized_messages SET UNLOGGED; CREATE INDEX recent_messages_idx ON chat.messages (created_at DESC) WITH ( FILLFACTOR = 50 ) TABLESPACE chatapp_ssd WHERE ('2019-04-16'::date - messages.created_at) > '3 ...
create database school_management_system; create table Student(Student_ID int primary key,F_Name varchar(15),M_Name varchar(15),L_Name varchar(15),Class int not null,Date_of_Birth date,Sex char(1),Address varchar(40),Phone_No int,Room_No int ); create table Teacher(Teacher_ID int ,F_Name varchar(15),M_Name varchar(15...
create table answers ( id integer primary key autoincrement, dutch text not null, english text not null, answer text );
SELECT title FROM movies WHERE id IN (SELECT movie_id FROM stars WHERE person_id = (SELECT id FROM people WHERE name = "Johnny Depp")) INTERSECT SELECT title FROM movies WHERE id IN (SELECT movie_id FROM stars WHERE person_id = (SELECT id FROM people WHERE name = "Helena Bonham Carter"));
select create_db_user('kalap', 'password'); INSERT INTO organisation (name, db_user, uuid, parent_organisation_id) SELECT 'Kalap', 'kalap', 'ac3e7bd0-5905-4b9f-a039-5f675e76eb21', id FROM organisation WHERE name = 'OpenCHS' and not exists (select 1 from organisation where name = 'Kalap');
CREATE TABLE `client` ( `id` int(11) NOT NULL AUTO_INCREMENT, `firstName` varchar(45) NOT NULL, `surName` varchar(45) NOT NULL, `statusClient` varchar(45) NOT NULL, `adress` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8 CREATE TABLE `product` ( `id` i...
UPDATE tipos_formacion SET codigo = '73' WHERE nombre LIKE 'Especialización Médica%'; UPDATE tipos_formacion SET codigo = '65' WHERE nombre LIKE 'Odontología%';
/* Created by : Dren Niebres * Date Created : 08.01.2016 * Remarks : SR-5278 */ SET SERVEROUTPUT ON DECLARE v_exist NUMBER := 0; BEGIN SELECT 1 INTO v_exist FROM all_objects WHERE owner = 'CPI' AND object_name = 'GIIS_MC_DEP_RATE'; IF v_exist = 1 THEN DBMS_OUTPUT.put_line (...
CREATE TABLE orderinvoice ( id CHAVE NOT NULL, id_order CHAVE NOT NULL, number INTEGER NOT NULL, delivery_number INTEGER NOT NULL, delivery_date ...
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 14 Okt 2014 pada 11.04 -- Versi Server: 5.5.36 -- PHP Version: 5.4.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
INSERT INTO blog ( title, content) VALUES ( 'Krishna','kpras@mail.com');
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema demo -- -...
SELECT RoleID, Type, Value FROM RoleClaims (NOLOCK) WHERE RoleID = @RoleID
SELECT COUNT(name) FROM world WHERE area > 1000000
<?php /** * @file GetTransaction.sql * gets an specified transaction from %Transaction table * @author Till Uhlig * @param string \$tid a %Transaction identifier * @result * - T, the transaction data */ ?> select concat('<?php echo Transaction::getCourseFromTransactionId($tid); ?>','_',T.T_id,'_',T.T_ran...
select e.encounter_id, IF(TIME_TO_SEC(e.date_created) - TIME_TO_SEC(e.encounter_datetime) > 1800, TRUE, FALSE) from encounter e where e.encounter_id in (:encounterIds)
SELECT [Name], [Page], [Data] FROM [Attachment] union select [Name], [Directory] as [Page], [Data] from [File] order by [Page], [Name]
CREATE DATABASE IF NOT EXISTS `dmdd_project_garima` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `dmdd_project_garima`; -- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: localhost Database: dmdd_project_garima -- ------------------------------------------------------ -- Server version 8.0.12 /*!40...
insert into Notes ( NoteId, ScreenName, IsVisible, IsLocked, IsCompact, TextWrap, ContentKind, HiddenMode, Title, LayoutKind, FontId, ForegroundColor, BackgroundColor, IsTopmost, CaptionPosition, [CreatedTimestamp], [CreatedAccount], [CreatedProgramName], ...
-- -- FUO_OSD_DIR (Directory) -- CREATE OR REPLACE DIRECTORY FUO_OSD_DIR AS '/data02/unit_offer/ocs_subscriber_del/process_dir';
/* Author: Andrew Blair Cruz ID: 1364884 Assignment: Lab 3 Name: script3.sql Description: General contraints: 1. Length of the film has to be a positive integer. -Name constraint: positive_length 2. An mg_customer must not have an empty foreign key to the address table. -the address_id cannot be NUL...
CREATE TABLE Sections ( id INTEGER PRIMARY KEY NOT NULL, forum_id INTEGER NOT NULL, parent_id INTEGER NOT NULL, FOREIGN KEY(parent_id) REFERENCES Sections(id)); CREATE TABLE UserRangs ( id INTEGER PRIMARY KEY NOT NULL, description TEXT); CREATE TABLE Users ( id INTEGER PRIMARY KEY NOT NULL...
/* Navicat MySQL Data Transfer Source Server : php Source Server Version : 50617 Source Host : localhost:3308 Source Database : manage Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2018-06-12 16:30:18 */ SET FOREIGN_KEY_CHECKS=...
-- Author: Carlos Reis -- Github: github.com/CarlosEReis -- HackerRank: hackerrank.com/carlos_er7 SELECT COUNT(CITY) - COUNT(DISTINCT CITY) FROM STATION;
\c -- DROP TABLE IF EXISTS users CREATE TABLE users ( user_id INTEGER, user_name VARCHAR(50), user_age INTEGER, user_gender VARCHAR(2), last_location VARCHAR(50), lat DECIMAL, long DECIMAL ) -- COPY users FROM '/Users/kennywhwu/Desktop/rithm_school/outcomes/challenges/rithm/backend/api-challenge/users.c...
SELECT r.col_id AS Id, r.col_name AS NAME, r.col_code AS Code, r.col_description AS Description, r.col_isdeleted AS IsDeleted, r.col_type AS TYPE, r.col_textstyle AS TextStyle, r.col_cellstyle AS CellStyle, r.col_rowstyle AS RowStyle, r.col_iconcode AS Icon...
REM AUDIT TRAIL: 9.0 REM 1. Horizon REM AUDIT TRAIL END set echo on insert into GUBOBJS ( GUBOBJS_NAME, GUBOBJS_DESC, GUBOBJS_OBJT_CODE, GUBOBJS_SYSI_CODE, GUBOBJS_USER_ID, GUBOBJS_ACTIVITY_DATE, GUBOBJS_HELP_IND, GUBOBJS_EXTRACT_ENABLED_IND, GUBOBJS_SURROGATE_ID, GUBOBJS_VERSION, GUBOBJS_DATA_ORI...
/* Navicat MySQL Data Transfer Source Server : me Source Server Version : 80015 Source Host : localhost:3306 Source Database : permission_manager Target Server Type : MYSQL Target Server Version : 80015 File Encoding : 65001 Date: 2019-08-16 16:44:01 */ SET FOREIGN_KEY_CHECKS=0; ...
drop table if exists stage.stg_patients_full; create table stage.stg_patients_full ( na_instituicao varchar(100) not null, id_paciente varchar(50) not null, ic_sexo bpchar null, aa_nascimento int2 null, cd_pais varchar(2) null, cd_uf varchar(2) null, cd_municipio varchar(100) null, cd_cep varchar(10) null, dt...
-- the feed_sync table is updated by the sync service CREATE TABLE feed_sync ( _id INTEGER PRIMARY KEY, url TEXT NOT NULL, title TEXT, link TEXT, etag TEXT, modified TEXT ); -- the feed_user table is updated by the user CREATE TABLE feed_user ( _id INTEGER UNIQUE NOT NULL, title TEXT, ...
-- ----------------------------------------------------------------------------- -- What is the name of the customer who has the most orders? SELECT Customers.CustomerName AS customer_name, COUNT(*) AS num_orders FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID GROUP BY Customers.Custo...
CREATE TABLE `program_data` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `value` TEXT ); INSERT INTO `program_data`(value) VALUES ("ryba") SELECT `value` FROM `program_data` SELECT date('now');
/* I have a table for bugs from a bug tracking software; let’s call the table “bugs”. The table has four columns (id, open_date, close_date, severity). On any given day a bug is open if the open_date is on or before that day and close_date is after that day. For example, a bug is open on “2012-01-01”, if it’s create...
Select * from sandra;
CREATE VIEW `zadanie7` AS select sum(cena) as suma_cena from nabial;
-- Insert into Instructor Table INSERT INTO Instructor (first_name, last_name) VALUES ('Alice', 'Simth'); INSERT INTO Instructor (first_name, last_name) VALUES ('Foo', 'Bar'); INSERT INTO Instructor (first_name, last_name) VALUES ('Bob', 'Goo'); -- Insert into Course Table INSERT INTO Course (cid, inst_id, subject) VA...
declare v_apiCode nvarchar2(255); v_objectTypeCode nvarchar2(255); v_objectApiCode nvarchar2(255); v_code nvarchar2(255); v_modelId number; v_fomAttrId number; v_domObjectId number; v_somObjectId number; v_attrFormatCode nvarchar2(255); v_objectCode nvarchar2(...
DROP PROCEDURE CPI.CHECK_TOTAL_LOSS; CREATE OR REPLACE PROCEDURE CPI.check_total_loss( p_line_cd GIPI_POLBASIC.line_cd%TYPE, p_subline_cd GIPI_POLBASIC.subline_cd%TYPE, p_pol_iss_cd GIPI_POLBASIC.iss_cd%TYPE, p_issue_yy GIPI_POLBASIC.issue_yy%TYPE, p_pol_seq_no ...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50155 Source Host : 127.0.0.1:3306 Source Database : ycd_old Target Server Type : MYSQL Target Server Version : 50155 File Encoding : 65001 Date: 2014-09-27 12:01:00 */ SET FOREIGN_KEY_...
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION gcd" to load this file. \quit CREATE OR REPLACE FUNCTION gcd(anyarray) RETURNS integer AS 'gcd', 'gcd' LANGUAGE C IMMUTABLE STRICT;
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Sam 15 Avril 2017 à 19:51 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 03, 2016 at 02:02 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
CREATE TABLE IF NOT EXISTS teachers ( id BIGSERIAL PRIMARY KEY, first_name VARCHAR NOT NULL, last_name VARCHAR NOT NULL, mobile VARCHAR, last_modified_at TIMESTAMP, last_modified_by VARCHAR ); CREATE TABLE IF NOT EXISTS subjects ( id BIGSER...
CREATE OR REPLACE PACKAGE ORD.CORE AS /* $pkg: ORD.CORE */ /* $obj_type: procedure $obj_name: bill_pay $obj_desc: procedure perform transit bills with status [W]aiting to billing system. $obj_desc: that means bill requested for pay. after that bill marked as [T]ransported $obj_desc: this procedure executed fr...
DELETE FROM dbo.userAccounts; INSERT INTO dbo.userAccounts(username, email, passwordHash, firstName, lastName, registrationDate, roley) VALUES ('crkobel', 'crkobel@verizon.net', 'aldfjlkjsdfl342', 'Connor', 'Kobel', '2020-11-06', 'Admin'); INSERT INTO dbo.userAccounts(username, email, passwordHash, firstName, lastNam...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
delete from HtmlLabelIndex where id=20118 / delete from HtmlLabelInfo where indexid=20118 / INSERT INTO HtmlLabelIndex values(20118,'请选择参会人员!') / INSERT INTO HtmlLabelInfo VALUES(20118,'请选择参会人员!',7) / INSERT INTO HtmlLabelInfo VALUES(20118,'Please,select attends!',8) /
INSERT INTO CatalogType (Name) VALUES ('Materiales'), ('Equipo'), ('Herramientas'), ('Mano de Obra');
DROP TABLE ies_cursos_requisitos; CREATE TABLE ies_cursos_requisitos ( id SERIAL NOT NULL PRIMARY KEY, ies_curso_id INTEGER NOT NULL REFERENCES ies_cursos(id), requisito VARCHAR(500) NOT NULL );
/* SEED THE YellowBucketCSC365 DATABASE WITH SAMPLE DATA */ /* Austin Caldwell and Evan Wehr */ -- Updated 12/28/2015 FOR MySQL USE YellowBucketCSC365; INSERT INTO CustomerAddress(addressLine1, addressLine2, city, stateProvince, postalCode) VALUES ('777 Kindgom Way', '', 'Ararat', 'New York', '13011'), ('111 Lonestar...
/* SQL */ select bit_length(name)+length(race) calculation from demographics
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.4 -- Dumped by pg_dump version 9.6.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
INSERT INTO user_type VALUES(1, 'Básico'); INSERT INTO user_type VALUES(2, 'Premium'); INSERT INTO users(username,password,enabled) VALUES ('antonio98','Usuar10',TRUE); INSERT INTO authorities(id,username,authority) VALUES (1,'antonio98','usuario'); INSERT INTO authorities(id,username,authority) VALUES (2,'antonio98',...
drop table fantasyteams; create table fantasyteams ( id int primary key NOT NULL IDENTITY , userid int NOT NULL, tournamentid int, gkid int, d1id int, d2id int, d3id int, d4id int, m1id int, m2id int, m3id int, m4id int, f1id int, f2id int );
-- ============================================= -- Proyecto: Sistema SIGEIN 5.0 -- Copyright (c) - Acrux - 2015 -- Author: Margarita Salcedo -- CREATE date: 21/09/2015 -- Description: Obtiene los datos de la tabla K_EVALUADO_EVALUADOR -- ============================================= CREATE PROCEDURE [ADM].[SPE_OBTIE...
ALTER TABLE `user` ADD `activated_hash` VARCHAR(50) NOT NULL AFTER `name`;
--- MySQL mode --- select name from employee order by name asc;
CREATE TABLE inst_group_app_users ( inst_group_id BIGSERIAL REFERENCES inst_group ON DELETE CASCADE, app_user_id BIGSERIAL REFERENCES app_user ON DELETE CASCADE, UNIQUE(inst_group_id,app_user_id) );
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 12 фев 2019 в 08:08 -- Версия на сървъра: 10.1.36-MariaDB -- PHP Version: 7.0.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
-- trigger 선언 create or replace trigger test_trigger after insert or update or delete on test_trigger1 for each row declare begin -- triggering event 비교 if inserting then -- 추가되기전 이전의 값 :old.컬럼명은 값이 존재하지 않으나 -- 추가된 이후의 값 :new.컬럼명은 값이 존재한다. dbms_output.put_line('추가 작업 수행. 이전값 : '|| :old.name||' / ...
-- A function to find the dads in Chicago with the most kids SELECT NAME,sum(NUM_KIDS),CITY,Street FROM Orders WHERE CITY='CHICAGO' GROUP BY NAME,STREET ORDER BY sum(NUM_KIDS) desc
/* Navicat MySQL Data Transfer Source Server : luoluo Source Server Version : 50505 Source Host : localhost:3306 Source Database : text2 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-10-27 17:54:57 */ SET FOREIGN_KEY_CHECK...
-- how many of those search urls aren't wordpress osdd links with t as ( select o.id, o.url, x.* from osdds o, jsonb_to_recordset(o.url_templates::jsonb) as x( default_url text, search_url text, example_url text, responses js...
CREATE TABLE IF NOT EXISTS blogs ( id INTEGER PRIMARY KEY, -- When you create a table that has an INTEGER PRIMARY KEY column, this column is the alias of the rowid column name TEXT NOT NULL, description TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS posts ( id INTEGER PRIMARY KEY, title TEXT NOT...
/* In this demo we learned to use 1) order by, which orders the values in asc or desc 2) distinct, which gets rid of repeated values 3) group by, which groups tuples with the same value for a particular attribute 4) count, which counts the number of tuples in a group 5) having, which is like the whe...
TABLE_NAME ANALYTICS_CERTIFICATION_CAMPAIGN_DETAIL_FACT Field Type Null Key Default Extra id bigint(20) NO PRI NULL auto_increment CERTIFICATION_CAMPAIGN_DETAIL_POLICY_DIMENSION_ID bigint(20) YES NULL CERTIFICATION_CAMPAIGN_RESUME_FACT_ID bigint(20) YES NULL amountCanceled bigint(20) YES NULL amountCertified bigi...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 12 фев 2019 в 08:25 -- Версия на сървъра: 10.1.36-MariaDB -- PHP Version: 7.0.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- task 1 SELECT emp.emp_no, emp.last_name, emp.first_name, emp.gender,sal.salary FROM employees AS emp JOIN salaries AS sal ON emp.emp_no = sal.emp_no; -- task 2 SELECT * FROM employees WHERE hire_date >= '01/01/1986' AND hire_date <= '12/31/1986'; -- task 3 SELECT dm.dept_no, dep.dept_name, dm.emp_no, emp.last_name...
SELECT COUNT(*) FROM PARTICIPANTS WHERE DELETE_FLAG = 0;
create table Cre_Preregistro_Lote_Detalle( IdPreregistroLoteDetalle int identity(1,1) primary key not null, IdPreregistroLote int not null, IdTipoDocumento int not null, IdEstatusDocumento int not null, IdEstado int not null )
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE TABLE bookings...
DROP TRIGGER IF EXISTS account_platform_fix# CREATE TRIGGER account_platform_fix BEFORE INSERT ON ACCOUNT_SESSION FOR EACH ROW BEGIN IF INSTR(NEW.START_PAGE,'mobile') AND NEW.PLATFORM <> 'ANDROID' THEN SET NEW.PLATFORM = 'IOS'; END IF; END #
SELECT C.YEARMONTH, C.ZKEY, C.DOM_TYPE_II, C.DIVISION_NAME, C.CREDIT_BIN, C.OS_HA, C.EVER_S2S_CUST, C.ACCOUNT_NAME, C.PROPLUS, C.PROPLUS_CURRENT_CUST, C.EVER_FOL_CUST, C.EVER_EBIZ_CUST, C.MON, C.FRIENDLY, C.S2S_CURRENT_CUST, C.FOL_CURRENT_CUST, C.EBIZ_CURRENT_CUST, C.FIRST_FEI_ORDER, C.FIRST_S2S_ORDER, C.FIRST_FOL_OR...
delete from HtmlLabelIndex where id=24406 / delete from HtmlLabelInfo where indexid=24406 / INSERT INTO HtmlLabelIndex values(24406,'informix数据库连接') / INSERT INTO HtmlLabelInfo VALUES(24406,'如果数据库类型为informix,则数据库名称请按“数据库名@$服务名”的格式输入,如testdb@$myserver',7) / INSERT INTO HtmlLabelInfo VALUES(24406,'database type is in...
/* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : copyright Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 Date: 15/09/...
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SU...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 25-04-2019 a las 13:06:43 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
DROP TABLE IF EXISTS `eve_patchlist`; CREATE TABLE `eve_patchlist` ( `event_datetime` DATETIME NOT NULL, `event_type` ENUM('patch','event','pvp','IRL','test') NOT NULL, `event_name` VARCHAR(32) NOT NULL, PRIMARY KEY(event_datetime)) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE INDEX ...
select products.name, providers.name, categories.name from products, providers, categories where providers.name = 'Sansul SA' and products.id_providers = providers.id and categories.name = 'Imported' and categories.id = products.id_categories
SELECT json_build_object( 'type', 'Feature', 'geometry', ST_AsGeoJSON(t.point)::json, 'properties', json_build_object( 'amenity', t.amenity, 'category', t.category, 'distance', t.distance, 'name', t.name ) ) AS geojson FROM ( SELECT ST_TRANSFORM(point, 4326) AS point, amenity, cate...
create table ext_policeman ( PERSON_ID uuid, CREATE_TS timestamp, CREATED_BY varchar(50), VERSION integer, UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), POST varchar(50), POST_OF varchar(50), AREA varchar(50), ADDRESS_ORGAN varc...
CREATE TABLE "GIS_OPA"."OFFPROP" AS SELECT * FROM "GIS_DS"."OFFPROP_EXT"; # Add indexes here
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; -- ----------------------------------------------------- -- Table `qm-variable-categories` -- ------------------------------------------...
-- phpMyAdmin SQL Dump -- version 2.10.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 14, 2014 at 10:38 AM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `quanlymonhoc` -- -- ------------------------------------------------------...
create table daily_wip_extract( lot number (7,0) PRIMARY KEY, device varchar2 (32) not null, lpt number (4,0) not null, wafers number (2,0) not null )
SELECT JSON_OBJECT('@id' VALUE 'eis:eFrame/CanonicalProperty/'|| id, '@type' VALUE 'bo:CanonicalProperty', 'identifier' VALUE JSON_OBJECT('@type' VALUE 'bo:CanonicalPropertyIdentity', '@id' VALUE 'eir:CanonicalProperty/' || id, 'primaryIdentifier' VALUE id, 'identityType' VALUE 'bo:CanonicalPropertyIdentity', 'natura...
SELECT `sut`.`name`, `pp`.`start_date`, `pp`.`end_date` FROM `@source_database@`.`payment_periods` pp JOIN `@source_database@`.`users_temp` sut ON `pp`.`user_id` = `sut`.`uuid` WHERE `pp`.`created_at` > "@start_date@";
begin tran if not exists( select top 1 1 from dbo.Sexes where code like 'NOSEX') begin INSERT INTO dbo.Sexes (Name,Code,IsActive,SortOrder,DateCreated,DateUpdated) values ('No sex selected','NOSEX',1,0,GetDate(),GetDate()) end if not exists( select top 1 1 from [order].DeliveryMethods where code like 'ELECTRONIC') beg...
insert into User (id, name, lastName, age) values ('1', 'Igor', 'Ivanov', 31); insert into User (id, name, lastName, age) values ('2', 'Anton', 'Sidorenko', 39); insert into User (id, name, lastName, age) values ('3', 'Kirill', 'Popov', 44); insert into User (id, name, lastName, age) values ('4', 'Petr', 'Okimov', 6...
SELECT count(*) FROM ( SELECT count(*) s FROM frequency GROUP BY docid HAVING s > 300 );
--How to run this file: --Either navigate to its folder, then execute: -- su - user -- psql -U user -d rovdemo -a -f tables_setup.sql --after user and rovdemo are created, --or from an arbitrary location execute -- psql -U user -d rovdemo -a -f {full path goes here}/tables_setup.sql --Destroy all previously existing ...
INSERT INTO Appuser ("username", "password") VALUES ('firstUser', '89e01536ac207279409d4de1e5253e01f4a1769e696db0d6062ca9b8f56767c8'), --mypassword ('secondUser', '5feb194f366227200b41097ee2b5c6d68d6cacae6ba8062f62d3dbb5de1b2e45'), --uzytkownik123 ('thirdUser', '069a58828e121af5b6b5c4e43458187c758de484...
CREATE TABLE IF NOT EXISTS students ( id INTEGER PRIMARY KEY, first_name TEXT, last_name TEXT, email TEXT, gitname TEXT, birthday TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
CREATE TABLE "CMDS_M_RCP_GNRLZ_DIV" ( "RCPT_GNRLZ_DIV" VARCHAR2 (1) NOT NULL ENABLE, "RCPT_GNRLZ_DIV_NAME" NVARCHAR2(20), CONSTRAINT "CMDS_M_RCP_GNRLZ_DIV_PK" PRIMARY KEY ("RCPT_GNRLZ_DIV") USING INDEX TABLESPACE NDB_USERS1 ) TABLESPACE NDB_USERS1 NOLOGGING PARALLEL 96 ;
USE gr03731q; CREATE TABLE users ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, birthdate DATE NOT NULL, password VARCHAR(50) NOT NULL, nickname VARCHAR(10) NOT NULL, mail VARCHAR(255) NOT NULL, is_admin BOOL...
-- Select Queries SELECT * FROM flights; SELECT origin, destination FROM flights; SELECT * FROM flights WHERE id=1; SELECT * FROM flights WHERE origin = 'New York'; SELECT * FROM flights WHERE duration > 500; SELECT * FROM flights WHERE destination = 'Paris' AND duration > 500; SELECT * FROM flights WHERE destination =...
CREATE TABLE customers( id SERIAL, firstName varchar(10), lastName varchar(10) );