sql
stringlengths
6
1.05M
CREATE TABLE dummy_entity ( id BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY, NAME VARCHAR(100)); CREATE TABLE element (id BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY, content BIGINT, Dummy_Entity_key BIGINT,dummy_entity BIGINT);
drop index idx_response_identifier_idx on o_qti_assessment_response; alter table o_qti_assessment_response modify q_responseidentifier varchar(256); create index idx_response_identifier_idx on o_qti_assessment_response (q_responseidentifier(255)); alter table o_bs_authentication add column lastmodified datetime; updat...
<gh_stars>0 CREATE FUNCTION StructuredError.ErrorConvertToString(@ErrorXML XML, @LimitLength bit) RETURNS VARCHAR(max) AS /********************************************************************************************************************************** DESCRIPTON: Convert a structured error message in XML...
CREATE TABLE users ( id binary(16) PRIMARY KEY, id_text varchar(36) generated always as (insert(insert (insert (insert (hex(id),9,0,'-'),14,0,'-'),19,0,'-'),24,0,'-')) virtual ); INSERT INTO users (`id`) VALUES (UUID_TO_BIN('11111111-1234-5678-1234-567812345678')), (UUID_TO_BIN('22222222-1234-5678-12...
<reponame>a97marbr/cplan<gh_stars>0 CREATE TABLE course ( cid SERIAL NOT NULL, cname VARCHAR(100) DEFAULT NULL, ccode VARCHAR(45) DEFAULT NULL UNIQUE, credits DECIMAL(3,1) DEFAULT NULL, class VARCHAR(45) DEFAULT NULL, program_year INT DEFAULT NULL, /* NOT USED */ active INT DEFAULT 1, PR...
<filename>laravel_blog.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: laravel_blog -- ------------------------------------------------------ -- Server version 5.5.49-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<filename>dump.sql -- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: coolfriend_admin -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
DATE : 08/03/2022 Assignment 04 Title : DUAL Assignment ____________________________________________________________________________________________________ Q: What is D|X in Dual? A: D stands for Dummy and X stands for reference drawn by the dummy table. 1) Perform arithmetic opearations - SELECT 5*3, 2+5, 6/9, 5-4 ...
/* Store fields and field information for the sample editors */ DROP TABLE IF EXISTS `fields`; CREATE TABLE IF NOT EXISTS `fields` ( handle VARCHAR(100) NOT NULL PRIMARY KEY, field_name VARCHAR(200), field_type VARCHAR(100), gisaid TINYINT UNSIGNED, ena TINYINT UNSIGNED, ncbi TINYINT UNSIGNED, db_key VARCHAR(...
<filename>populate_db/asset_pairs.sql INSERT INTO `asset_pairs` (name,crypto_currency_id,crypto_currency_id2,ut) VALUES ("BTCCAD",,,"2017-09-27 12:25:00"), ("",,,"2017-09-27 12:25:00"), INSERT INTO `asset_pairs_lookup` (name,altname,ut) VALUES ( XXBTZCAD XXMRZUSD XXBTZEUR XETHXXBT XX...
<gh_stars>0 SET search_path = tasker, pg_catalog ; CREATE VIEW sv_issue_severity AS SELECT id AS severity_id, name FROM tasker.st_issue_severity ORDER BY id ; ALTER TABLE sv_issue_severity OWNER TO tasker_owner ; COMMENT ON VIEW sv_issue_severity IS 'System view for severity levels for issues.' ; RE...
<reponame>contapapo/rew set @day_nbr = 30; set @From = date_format(date_sub(curdate(),INTERVAL (30+1) DAY),'%Y%m%d001500'); set @to = concat(curdate()-1,'000000'); SELECT cpt.ean1 'EAN1 (std)',cpt.nom 'Nom',cpt.site 'Site',cpt.sn 'SNR',cpt.S00 'Type' FROM regie.compteur cpt LEFT JOIN (SELECT site,COUNT(*) as c...
/*!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 */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SE...
<reponame>dineshkummarc/TimesApp<filename>timesapp_empty_v0.1.9.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 29, 2014 at 06:12 PM -- Server version: 5.6.12-log -- PHP Version: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zo...
<filename>DISTRIBUTION-REPLICATION/triggers/ISBN-exToLivre/BD1/LockExToBD2.sql<gh_stars>1-10 CREATE OR replace TRIGGER Lock_ex_toBD2 BEFORE DELETE ON LIVRE BEGIN lock table EXEMPLAIRE@vers_Angers in share mode; end;
<filename>src/main/resources/db/migration/V1_18__dynamic_framework_contract.sql create table dynamic_framework_contract ( id uuid not null, service_category_id uuid not null, service_provider_id varchar(30) not null, start_date date not null, end_date date not null, nps_region_id char, pcc_region_id te...
<gh_stars>1-10 SELECT NAME FROM CITY WHERE population > 120000 AND countrycode = "USA";
<reponame>bogdanghita/public_bi_benchmark-master_project SELECT CAST(EXTRACT(YEAR FROM "Uberlandia_1"."data_de_inicio") AS BIGINT) AS "yr:data_de_inicio:ok" FROM "Uberlandia_1" GROUP BY "yr:data_de_inicio:ok" ORDER BY "yr:data_de_inicio:ok" ASC ;
<reponame>yemrekeskin/sql-lessons<filename>T-SQL Training Material/Exercises/is_null.sql --is null select c1.Region, c1.ContactName, c1.CompanyName from Customers c1 where Region is null select c1.Region, c1.ContactName, c1.CompanyName from Customers c1 where Region is not null select sp.Country, sp.Fax, isnull(sp...
CREATE ENCRYPT RULE t_encrypt ( COLUMNS( (NAME=password,CIPHER=password_cipher,TYPE(NAME=AES,PROPERTIES('aes-key-value'='<KEY>')))) );
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2020 at 07:12 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>1-10 drop table if exists non_drug; create table non_drug as select * from concept_stage_sn where concept_name ~* 'dialysis|mma/pa|smoflipid|camino|maxamum|sno-pro|lubri|peptamen|pepti-junior|dressing|diagnostic|glove|supplement|containing| rope|procal|glytactin|gauze|keyomega|cystine|docomega|anamix|xlys|xmt...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50522 Source Host : localhost:3306 Source Database : crawl Target Server Type : MYSQL Target Server Version : 50522 File Encoding : 65001 Date: 2015-01-30 14:31:02 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
create database if not exists `linfeicn` default charset utf8 collate utf8_general_ci; /*-------------- -- 管理员 ---------------*/ create table if not exists `linfei_admin`( `admin_id` int(11) unsigned not null auto_increment primary key, `admin_name` char(10) not null default '' comment '用户名', `admin_passwd` varchar(25...
-----MORE PRACTICE with Snowflake--------------- -----Create table, database, warehouse in snowflake and upload csv file -----Then create UDF to query the tables -----pipe the output of the sql file into csv create or replace database moviedb; select current_database(), current_schema(); create or replace table m...
<gh_stars>1-10 CREATE TABLE `aluno` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(45) DEFAULT NULL, `endereco` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
<reponame>gaterace/mservice use mservice; DROP TABLE IF EXISTS tb_Claim; -- MService claim name entity CREATE TABLE tb_Claim ( -- unique identifier for an MService claim name inbClaimNameId BIGINT AUTO_INCREMENT NOT NULL, -- creation date dtmCreated DATETIME NOT NULL, -- modification date dtm...
.headers ON /* Select the core to be used as reference. Only last day of measurements is used. */ CREATE TEMP VIEW if not exists refCore AS select * from Unary where coreid=5 AND DATE BETWEEN datetime('now','localtime','-23 hours') AND datetime('now', 'localtime'); ; /* Select the cores to be benchmarked comp...
<gh_stars>10-100 -- copy from druid test resources, see https://github.com/alibaba/druid UPDATE AVATAR_CASE SET GMT_MODIFIED=sysdate,STATUS = ?,SYS_DECISION = ?,MANUAL_DECISION = ?,OPERATOR=? , MEMO = ? where id in ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ) ; UPDATE AVATAR_CASE SE...
<filename>cadastre/scripts/plugin/edigeo_unites_foncieres_postgis.sql -- Création des unités foncières pour PostGIS INSERT INTO [PREFIXE]geo_unite_fonciere (comptecommunal, annee, lot, geom) SELECT comptecommunal, '[ANNEE]', '[LOT]', ST_Multi((St_Dump(St_Union(a.geom))).geom) as geom FROM [PREFIXE]v_g...
<gh_stars>0 /*L Copyright Duke Comprehensive Cancer Center Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/catrip/LICENSE.txt for details. L*/ INSERT INTO BREAST_SUR_PATHO_SPECIMANS ( ID, SURGICAL_PROCEDURE_MVR, OTHER_SURGICAL_PROCEDURE, LYMPH_NODE_PROCEDURE, LATERALITY, LATE...
<reponame>Cepairda/test-task -- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 11 2017 г., 16:27 -- Версия сервера: 5.6.37 -- Версия PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
/*L Copyright HealthCare IT, Inc. Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/edct-formbuilder/LICENSE.txt for details. L*/ ALTER TABLE "FormBuilder".module ADD COLUMN uuid character(36); UPDATE "FormBuilder".module SET uuid = (generate_uuid_v3('6ba7b8119dad11d18...
<filename>dspace-api/src/main/resources/org/dspace/storage/rdbms/sqlmigration/oracle/V7.0_2021.03.30__cleanup_dspace-cris_migration_pre-7.0.sql -- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[Sp_DisableUser] (@Id_Users INT) AS BEGIN UPDATE USERS SET Active = 0 WHERE ID_USER = @Id_Users END; GO
<reponame>AlvinKW/HospitalManagementSystem INSERT INTO HOSPITALS (HOSPITAL_ID,HOSPITAL_NAME,HOSPITAL_ADDRESS,PHONE) VALUES ('H101','Newton-Wellesley Hospital','2014 Washington St, Newton, MA 02462, United States','617-243-6000'); INSERT INTO HOSPITALS (HOSPITAL_ID,HOSPITAL_NAME,HOSPITAL_ADDRESS,PHONE) VALUES ('H10...
<filename>scripts_oracle_separados/SQL/consultar_temp_sql.sql<gh_stars>0 select u.username, s.sql_fulltext, u.segtype, u.extents, u.blocks FROM V$TEMPSEG_USAGE U INNER JOIN V$SQL S ON s.sql_id = u.sql_id;
SELECT DISTINCT(CITY) FROM STATION WHERE CITY REGEXP "^[aeiou]";
<reponame>gzwplato/amud<filename>amud.sql create table Item ( ID integer primary key autoincrement, ParentID integer null, name varchar(200) not null, what varchar(20) not null, key varchar(200) null, data text not null, createdon datetime null, createdby int null ); insert into Item (name,what,data) values ('Sunburst...
<reponame>ZanwingMak/laravel_blog -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.5.47 - MySQL Community Server (GPL) -- 服务器操作系统: Win32 -- HeidiSQL 版本: 9.3.0.4984 -- --------------------------...
<reponame>maxzke/polleria-loma<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 28-03-2020 a las 22:44:36 -- Versión del servidor: 5.7.24 -- Versión de PHP: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START ...
CREATE TABLE usuario ( id integer NOT NULL, login character varying(100) NOT NULL, senha character varying(100) NOT NULL, ativo boolean ); ALTER TABLE public.usuario OWNER TO postgres; CREATE SEQUENCE usuario_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE...
TRUNCATE TABLE `zj_user`; INSERT INTO `zj_user` VALUES ('0', 'MWU0N2M5MjMyODk4ZDM3NGMwYTM3ZDBhOWNjNzljNWM=', '15010225539', '建遇良才', '建遇良才', '/resources/tuisong/ic_launcher.png', '142623199010255565', '0.00', '27835', '', '/Uploads/img/20160125/56a5f1756741b.jpg', '/Uploads/img/20160125/56a5f17568bc5.jpg', '1', '670b147...
<reponame>phenomiks/spring-cloud-storage BEGIN TRANSACTION ; CREATE TABLE products ( id BIGSERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL UNIQUE, price NUMERIC(10, 2) NOT NULL, created_at TIMESTAMP DEFAULT current_timestamp, updated_at TIMESTAMP DEFAULT current_timestamp ); IN...
CREATE TABLE users ( id SERIAL PRIMARY KEY, first_name VARCHAR(50), last_name VARCHAR(50), email VARCHAR(100) ); CREATE TABLE comments ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL, body VARCHAR(200), CONSTRAINT comments FOREIGN KEY (user_id) REFERENCES users (id) MATCH SIMPLE );
with bad_ids as ( select id from empls_actions where inout = 1 AND dt = '2020-12-19' group by id having min(t) > '9:30' ) select distinct department from empls_list where id in ( select id from bad_ids );
ALTER TABLE CATGENOME.PROJECT ADD COLUMN description blob;
<filename>express-mysql-todo/app/db/schema.sql<gh_stars>1-10 DROP DATABASE IF EXISTS todos_db; CREATE DATABASE todos_db; USE todos_db; CREATE TABLE todos ( id INT NOT NULL AUTO_INCREMENT, task VARCHAR(255) NOT NULL, done BOOLEAN NOT NULL DEFAULT 0, PRIMARY KEY (id) );
<reponame>ASSETEX/Aych.explore<gh_stars>100-1000 if OBJECT_ID('QueryExecutions') is null begin CREATE TABLE [dbo].[QueryExecutions] ( Id int identity, QueryId int NOT NULL, UserId int NOT NULL, SiteId int NOT NULL, FirstRun datetime not null, LastRun datetime not null, ExecutionCount in...
<gh_stars>100-1000 -- misc3.test -- -- execsql {SELECT 2e-25*0.5e25} SELECT 2e-25*0.5e25
<gh_stars>10-100 -- file:plpgsql.sql ln:3729 expect:false raise notice '% %', found, rc
SELECT grade FROM math_students WHERE EXISTS ( SELECT grade FROM english_students );
<gh_stars>0 INSERT INTO QUESTION (QUESTION_REF_ID,QUESTION_ID,SEQUENCE_NUMBER,SEQUENCE_STATUS,QUESTION,STATUS,GROUP_TYPE_CODE,QUESTION_TYPE_ID,LOOKUP_CLASS,LOOKUP_RETURN,DISPLAYED_ANSWERS,MAX_ANSWERS,ANSWER_MAX_LENGTH,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID,DOCUMENT_NUMBER) VALUES (SEQ_QUESTIONNAIRE_REF_ID.NEXT...
<gh_stars>0 INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES ('', '201959', '631', '1', '1', '4203.700195', '2484.830078', '364.955994', '...
insert into tbl_jinlong_system_role (role_type, role_code, role_name, description, state, process_state) values (1, 'ROLE_ADMIN', '超级管理员', '超级管理员主要负责初驾平台的用户管理、公共信息管理、广告信息管理、培训信息管理、驾校信息管理、用户发布信息管理、教练信息管理、学员信息管理等。'); insert into tbl_jinlong_system_role (role_name, description) values (2, 'ROLE_MANAGER', '二级管理员', '超级管理员主...
/*Base de datos de la pagina con relaciones 1:1*/ CREATE DATABASE unexpoweb; USE unexpoweb; /* Tabla de usuarios de la base de datos */ CREATE TABLE usuarios ( /* campo del id y es nuestra llave primaria ademas de ser autoincrementable */ id BIGINT NOT NULL AUTO_INCREMENT UNIQUE, nombre VARCHAR(30) NOT NUL...
select ss_sold_date_sk, sum(ss_net_paid_inc_tax) as total_tax from store_sales_40 where ss_sold_date_sk >= 2451392 and ss_sold_date_sk <= 2451894 and ss_sold_date_sk is not null and ss_net_paid_inc_tax is not null group by ss_sold_date_sk order by total_tax desc limit 10;
if object_id('dbo.DiffTable') is not null begin exec ('drop procedure dbo.DiffTable') end go create procedure dbo.DiffTable @TargetDatabaseName varchar(128) ,@TargetSchemaName varchar(128)='dbo' ,@TargetTableName varchar(128) ,@Debug bit=0 as begin set nocount on /* Order of...
/****** Object: StoredProcedure [dbo].[UpdateUser] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure [dbo].[UpdateUser] /**************************************************** ** ** Desc: ** Updates user information in T_Users ** ** Return values: 0: success, otherwise, error co...
rem Compiled valid classes under lucene schema in batch to reduce memory usage declare res NUMBER; begin for c in (SELECT dbms_java.longname(object_name) cName FROM user_objects WHERE object_type = 'JAVA CLASS' AND dbms_java.longname(object_name) like 'org/apache/lucene/analysis/...
<reponame>deltaDNA/sql-cookbook --get the number of users who were in a session at a given timeslot: with timeslots as( select slice_time from ( select now()-interval '6 hours' as date_range union select now() ) as ts timeseries slice_time as '1 minutes' over(order by date_r...
SELECT fn_db_change_column_null('vdc_options', 'default_value', false); SELECT fn_db_change_column_null('vdc_options', 'option_value', false);
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/ct/sql/ct_create_wet_ret.sql<gh_stars>0 -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- create a normal heap table -- CREATE TABLE ct_REGION ( R_REGIONKEY INTEGER NOT NULL, R...
-- @testpoint: opengauss关键字references(保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists references_test; create table references_test(id int,name varchar(10)); --关键字不带引号-合理报错 drop index if exists references; create index references on references_test(id); --关键字带双引号-成功 drop index if exists "references"; create i...
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 100131 Source Host : localhost:3306 Source Schema : service_motor Target Server Type : MySQL Target Server Version : 100131 File Encoding : 65001 Date: 29/05/201...
<reponame>navikt/sendsoknad ALTER TABLE SoknadBrukerData MODIFY (VALUE VARCHAR2(2000 CHAR));
/* 1. Escreva uma consulta SQL que: ○ Parta da tabela film (dica: essa será a tabela ao lado do comando FROM) ○ Relacione todas as tabelas com prefixo film_ ○ Não tenha colunas redundantes no resultado final (ou seja, as colunas em comum devem ser removidas da consulta) */ SELECT film_actor.actor_id, ...
<reponame>suluharwani/siakad_minat_siswa<gh_stars>0 ...
<filename>Query/5- Writing Complex Quires/5.7 corelated subquires.sql -- 5.7 corelated subquires use sql_hr; select * from employees e where salary > (select avg(salary) from employees where office_id = e.office_id); -- exercise use sql_invoicing; select * from invoices i where invoice_total > (select avg(invoice_tot...
<reponame>disman/desa<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 16, 2019 at 03:18 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
<filename>data/train/sql/af749574bada6cf12c9f1e33ec3443863811705cInitialize new_ Values v1.sql USE [Development_MSCRM]; UPDATE [Opportunity] SET [new_50ServicesRevenue] = 0 WHERE ISNUMERIC([new_ServicesRevenue]) = 0; UPDATE [Opportunity] SET [new_FirstYearRevenue] = 0 WHERE ISNUMERIC([new_FirstYearRevenue]) = 0; UPDA...
-- join6.test -- -- execsql { -- CREATE TABLE t1(a); -- CREATE TABLE t2(a); -- CREATE TABLE t3(a,b); -- INSERT INTO t1 VALUES(1); -- INSERT INTO t3 VALUES(1,2); -- -- SELECT * FROM t1 LEFT JOIN t2 USING(a) LEFT JOIN t3 USING(a); -- } CREATE TABLE t1(a); CREATE TABLE t2(a); CREATE TABLE t3(a,b)...
-- file:horology.sql ln:207 expect:true SELECT (timestamp without time zone '2000-11-26', timestamp without time zone '2000-11-27') OVERLAPS (timestamp without time zone '2000-11-27 12:00', timestamp without time zone '2000-11-30') AS "False"
<gh_stars>0 use employee_tracker; insert into department (name) values ( "Payroll"), ( "Dev"), ( "IT"); insert into role (title, salary, department_id) values ("Accountant", 45000.00, 1), ("Admin", 55000.00, 1), ("Sr. Developer", 75000.00, 2), ("Jr. Developer", 60000.00, 2), ("Server Technichen", 65000.00, 3), ("It O...
<filename>EmployeeSQL/query.sql --1. List the following details of each employee: employee number, last name, first name, gender, and salary. select e.emp_no, e.first_name, e.last_name, e.gender, s.salary FROM employees AS e LEFT JOIN salaries AS s ON e.emp_no = s.emp_no; --2. List employees who were hired in 1986. sel...
<filename>demo-schema.ddl<gh_stars>0 drop table if exists bill; drop table if exists customer; create table customer ( customerId binary(16) not null, customerFullName varchar(128), index(customerFullname), primary key (customerId) ); create table bill ( billId binary(16) not null, billCustomerId binary(16) n...
CREATE TABLE part_legacy(time timestamptz, temp float, device int); SELECT create_hypertable('part_legacy', 'time', 'device', 2, partitioning_func => '_timescaledb_internal.get_partition_for_key'); -- Show legacy partitioning function is used SELECT * FROM _timescaledb_catalog.dimension; INSERT INTO part_legacy VALUE...
<reponame>sammyjava/neptune<filename>jcms/sql/ads.sql -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = '...
<reponame>shopiz/shopiz /* Navicat MySQL Data Transfer Source Server : 172.16.30.210 Source Server Version : 50610 Source Host : 172.16.30.210:3306 Source Database : shopiz Target Server Type : MYSQL Target Server Version : 50610 File Encoding : 65001 Date: 2014-04-13 2...
<gh_stars>1-10 /****** Object: Table [dbo].[T_Cached_Dataset_Folder_Paths] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Cached_Dataset_Folder_Paths]( [Dataset_ID] [int] NOT NULL, [DS_RowVersion] [binary](8) NOT NULL, [SPath_RowVersion] [binary](8) NULL, [Dataset_Folder_Pa...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 18-Nov-2018 às 08:33 -- Versão do servidor: 10.1.36-MariaDB -- versão do PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
<filename>create_clients_table.sql -- Table: public.clients -- DROP TABLE public.clients; CREATE TABLE public.clients ( "Id" integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ), "ClientId" character varying(128) COLLATE pg_catalog."default" NOT NULL, ...
<filename>dubbo/DubboProvider/test/com/zxiaofan/test/config/initDB.sql #建库字符编码为utf8的库studydb CREATE DATABASE IF NOT EXISTS StudyDB DEFAULT CHARACTER SET utf8; #建表user CREATE TABLE IF NOT EXISTS USER ( id INT (10) NOT NULL auto_increment, userName VARCHAR (20) NOT NULL, age INT (4), addTime DATETIME, modif...
<reponame>e-commerce-mock/ecommerce-order-query-service<filename>ecommerce-order-query-service-api/src/main/resources/db/migration/V1.0__order_with_product.sql CREATE TABLE ORDER_WITH_PRODUCT ( ID VARCHAR(32) NOT NULL, JSON_CONTENT JSON NOT NULL, PRIMARY KEY (ID) ) CHARACTER SET utf8mb4 COLLATE...
<reponame>Rob--W/phabricator ALTER TABLE {$NAMESPACE}_repository.repository_refcursor CHANGE refNameRaw refNameRaw LONGBLOB NOT NULL;
<filename>Queries/salesViewDemo.sql create view raw_sales as select title, description, length, rating, payment.amount, payment_date, date_part('quarter', payment_date) as quarter, date_part('month', payment_date) as month, date_part('year', payment_date) as year, concat('Q',date_part( 'quarter', payment_date):: te...
<filename>assets/tourmaline_db (1).sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2015 at 11:35 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
-- QUERY TO GET ALL SXRSI MARINE MAMMALS AND RSI MEASUREMENT DATA -- CONTAINS UPDATE CODE --use nbndata --go --UPDATE TXOD --SET TXOD.DATA = 'No' SELECT TXOD.TAXON_OCCURRENCE_KEY, ITN.TAXON_LIST_ITEM_KEY, VTG.TAXON_GROUP_NAME, ITN.PREFERRED_NAME, ITN.COMMON_NAME, MQ.SHORT_NAME, TXOD.DA...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : haha Source Server Version : 50553 Source Host : localhost:3306 Source Database : mydb2004 Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-08-06 17:53:34 */ SET FOREIGN_KEY_CHECKS=...
<gh_stars>0 /** * Author: cltorrento * Created: Apr 13, 2020 */ CREATE DATABASE IF NOT EXIST api_rest_laravel; USE api_rest_laravel; CREATE TABLE users( id int(255) auto_increment NOT NULL, name varchar(255) NOT NULL, surname varchar(255), role ...
INSERT INTO `bank_users`.`currency` (`id`,`description`) VALUES (1, 'USD'); INSERT INTO `bank_users`.`currency` (`id`,`description`) VALUES (2, 'EUR'); INSERT INTO `bank_users`.`currency` (`id`,`description`) VALUES (3, 'BYR'); INSERT INTO `bank_users`.`deposittype`(`id`,`type`) VALUES(1, 'Срочный с процентами с конце...
<filename>SQL/Get_Fees_Stauts.sql CREATE PROC Get_Fees_Stauts AS SELECT ID,FEES_STAUTS FROM FEES;
<filename>SqlSampleDatabase/SqlSampleDatabase/Tables/Customers.sql CREATE TABLE [dbo].[Customers] ( [CustomerId] NVARCHAR(50) NOT NULL PRIMARY KEY, [CustomerName] NVARCHAR(50) NOT NULL, [CompanyName] NVARCHAR(50) NULL, [Phone] NVARCHAR(20) NULL, [DateCreated] DATETIME NOT NULL )
<filename>src/test/resources/sql/create_type/1db15804.sql -- file:rangetypes.sql ln:468 expect:true create type cashrange as range (subtype = money)
UPDATE my_role SET ROLE_NAME = 'this.Name', UPDATE_DATE = '$SYS_DATE_TIME$', UPDATE_USER = 2 WHERE (ROLE_NAME = 'before.Name');
ALTER TABLE `character_cp_weekcap` CHANGE COLUMN `source` `source` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `guid`;
<reponame>LabKey/cnprcEHRModules<gh_stars>0 /* * Copyright (c) 2016-2018 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
<filename>Config/Schema/sql/user_forum.sql CREATE TABLE aib_posts ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id INT(11) NOT NULL, title VARCHAR(255) NOT NULL, created DATETIME, modified DATETIME ); CREATE TABLE aib_comments ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, user_...
<filename>clasificate 3.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 12-11-2016 a las 04:39:55 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SE...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. ALTER TABLE [tpdm].[AccreditationStatusDescriptor]...