sql
stringlengths
6
1.05M
SELECT id, hours, floor(hours / 2) AS liters FROM cycling;
// Web Annotation Example 13: // https://www.w3.org/TR/annotation-model/#accessibility-of-content // { // "@context": "http://www.w3.org/ns/anno.jsonld", // "id": "http://example.org/anno14", // "type": "Annotation", // "motivation": "commenting", // "body": "http://example.net/comment1", // "target": { // ...
<filename>data/test/sql/61fd58bfeb4e52019ff02dd14d83b00e2b7967e9InitCustomer.sql DROP TABLE Customer; CREATE TABLE Customer (customerId varchar(20) NOT NULL, name VARCHAR(32) NOT NULL, address VARCHAR(200) NULL, CONSTRAINT customer_pk PRIMARY KEY (customerId) ); INSERT INTO Customer (customerId, name, address) values (...
create table `selected-course` ( courseId int not null, studentId int not null, mark int null comment '成绩' ); create index courseId on `selected-course` (courseId); create index studentId on `selected-course` (studentId); INSERT INTO bms.`selected-course` (courseId, studentId, mark) VALUES ...
-- create USER CREATE ROLE vertx NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN PASSWORD '<PASSWORD>'; GRANT ALL ON DATABASE postgres TO vertx;
-- file:tstypes.sql ln:169 expect:true SELECT ts_rank_cd(' a:1 s:2C d g'::tsvector, 'a & s')
-- MIMICIII FULL DROP SCHEMA mimiciii CASCADE; CREATE SCHEMA mimiciii; SET search_path TO mimiciii; \i 'postgres_create_tables.sql' \i 'postgres_load_data_gz.sql'
insert into positions(person, organization, title, start_date, start_date_precision, end_date, end_date_precision, urls, notes, employment_type, cause_area) values ('<NAME>','GiveWell','Executive Director','2006-08-01','month','2007-06-01','month','https://web.archive.org/web/20100609155532/http://www.givewell.org/...
<gh_stars>0 CREATE OR REPLACE FUNCTION utils.createcurrentlocationtable() RETURNS void LANGUAGE sql AS $function$ DROP TABLE IF EXISTS utils.current_location_temp; SELECT DISTINCT * INTO utils.current_location_temp FROM ( SELECT cc.id AS collectionobjectcsid, REGEXP_REPLACE( cc.computedcurrentlocati...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.0.1/sequences/KC_SEQ_IACUC_PROTO_AMEND_RENEWAL.sql<gh_stars>0 CREATE SEQUENCE SEQ_IACUC_PROT_AMND_REN_ID INCREMENT BY 1 START WITH 1 NOCACHE /
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
<filename>ThumbService/ThumbService/lib/MindTouch_Core_10.0.1_Source/web/maintenance/archives/patch-extension_services.sql INSERT INTO `services` (`service_type`, `service_sid`, `service_uri`, `service_description`, `service_enabled`, `service_local`) VALUES ('ext', NULL, 'http://ext.mindtouch.com/@api/dekiext/feed',...
<gh_stars>1-10 # Write your MySQL query statement below SELECT * FROM cinema WHERE description!='boring' AND id%2!=0 order by rating desc
<reponame>donaldinos/oracle-11g-apex-5<filename>scripts/ords_unlock_account.sql alter user APEX_PUBLIC_USER identified by "secret" account unlock;
-- MEthChainTokenAuth CREATE TABLE IF NOT EXISTS m_eth_chain_token_auth ( chain_token_shared_id TEXT NOT NULL, net_type TEXT NOT NULL, contract_address TEXT NOT NULL, position INTEGER NOT NULL, status INTEGER NOT NULL, id TEXT PRIMARY KEY, create_time INTEGER NOT NULL, update_time INTE...
<gh_stars>10-100 /* Copyright 2022 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
<gh_stars>10-100 {%- set source_model = "v_stg_inventory" -%} {%- set src_pk = "SUPPLIER_PK" -%} {%- set src_hashdiff = "SUPPLIER_HASHDIFF" -%} {%- set src_payload = ["SUPPLIER_ADDRESS", "SUPPLIER_PHONE", "SUPPLIER_ACCTBAL", "SUPPLIER_NAME", "SUPPLIER_COMMENT"] -%} {%- set src_eff = "EFFECTIVE_FROM" -%} {%- set src_ldt...
-- // CB-1838 Add unique constraint to user preferences in Env service -- Migration SQL that makes the change goes here. ALTER TABLE user_preferences ADD CONSTRAINT uk_user_crn UNIQUE (user_crn); -- //@UNDO -- SQL to undo the change goes here. ALTER TABLE user_preferences DROP CONSTRAINT IF EXISTS uk_user_crn;
<reponame>asad-awadia/yugabyte-db<filename>src/postgres/src/test/regress/sql/yb_roles.sql<gh_stars>1000+ -- test yb_extension role CREATE USER regress_priv_user; CREATE OPERATOR FAMILY alt_opf1 USING hash; SET SESSION AUTHORIZATION regress_priv_user; CREATE EXTENSION pgcrypto; -- should fail \c - GRANT yb_extension TO ...
/*************************************************************************** * functions.sql * * Yggdrasil: Essential PostgreSQL Functions * * * * Copyrig...
<filename>db/views/trade_shipments_mandatory_quotas_view/20210511134942.sql ( SELECT ts.id AS id,ts.year AS year,ts.appendix AS appendix,ts.taxon_concept_author_year AS author_year,ts.taxon_concept_name_status AS name_status,ts.taxon_concept_id,ts.taxon_concept_full_name AS taxon_name,ts.taxon_concept_phylum...
<filename>tests/Mandarin.Tests/Migrations/002-TestData.sql -- Test Data generated by https://www.mockaroo.com/ INSERT INTO inventory.stockist (stockist_id, stockist_code, stockist_status, first_name, last_name) VALUES (1, 'KT20', 'Active', 'Kelby', 'Tynan'); INSERT INTO inventory.stockist (stockist_id, stockist_code, ...
<gh_stars>1-10 --[er]invalid use of group by clause create class DML_0001 ( int_col integer, var_col varchar(20), set_col set (int, varchar(10)) ); insert into DML_0001 values (1,'test1', {1,'test1'}); insert into DML_0001 values (2,'test1', {1,'test1'}); insert into DML_0001 values (3,'test2', {1,'test2'}); insert ...
<filename>openGaussBase/testcase/KEYWORDS/Do/Opengauss_Function_Keyword_Do_Case0034.sql<gh_stars>0 -- @testpoint: opengauss关键字do(保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists do_test cascade; create table do_test(cid int,fid int); --关键字不带引号-失败 start transaction; cursor do for select * from do_test order by 1; close...
-- create parent tables CREATE TABLE non_partitioned_table_parent1 (NAME VARCHAR, AGE INT); CREATE TABLE non_partitioned_table_parent2 (GENDER BOOLEAN, SALARY INT); CREATE TABLE partitioned_table_parent (NAME VARCHAR, AGE INT) PARTITION BY RANGE (AGE) ( PARTITION non_partitioned_table_parent1_P1 VALUES LESS THAN (10),...
USE `soft_uni`; SELECT e.`first_name`, e.`last_name`, t.`name`, a.`address_text` FROM `employees` AS e JOIN `addresses` AS a ON e.`address_id` = a.`address_id` JOIN `towns` AS t ON a.`town_id` = t.`town_id` ORDER BY `first_name` , `last_name` LIMIT 5;
<filename>ecom.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 11 Jul 2018 pada 17.21 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
<filename>MSSQL/single-file-for-deploy.sql -- file [./Utils/format_interval.fn.sql] IF OBJECT_ID('[dbo].[format_interval]') IS NOT NULL DROP FUNCTION dbo.format_interval; GO /** * Function to format date intervals into human readable format like "01:23:45.123". * Unfortunately MSSQL does not allow function overloadin...
<reponame>amoltupe/thesurvey<filename>application/config/survey.sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2017 at 03:14 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2022 at 07:54 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>Projeto/Script SQL/SQL_controle_candidatos.sql<gh_stars>0 -- 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'; -- -----...
<gh_stars>0  CREATE PROCEDURE [dbo].[rpt_PatronActivity] @ProgId INT = NULL, @BranchID INT = NULL, @School VARCHAR(50) = NULL, @LibSys VARCHAR(50) = NULL, @TenID INT = NULL AS SET ARITHABORT OFF; SET ANSI_WARNINGS OFF; SELECT pg.AdminName AS Program, p.Username, p.FirstName, p.LastName, ISNULL(c1.Code, '') AS...
SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set linesize 200 set trimspool on spool create_additonal_tbs.out append -------------------------------------------------------- -- CREATE ADDITIONAL TABLESPACE -------------------------------------------------------- CREATE TABLESPACE system001 DATAFIL...
CREATE TABLE [dbo].[User] ( [Id] INT IDENTITY (1, 1) NOT NULL, [AspNetUserId] NVARCHAR (450) NOT NULL, CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_User_AspNetUsers] FOREIGN KEY ([AspNetUserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) );
--Problem: https://www.hackerrank.com/challenges/salary-of-employees/problem SELECT NAME FROM EMPLOYEE WHERE SALARY>2000 AND MONTHS<10 ORDER BY EMPLOYEE_ID ASC;
<gh_stars>1-10 DROP VIEW DVH_GJELDENDE_SITUASJON; DROP VIEW DVH_MANUELL_HISTORIKK; DROP VIEW DVH_OPPFOLGINGSHISTORIKK; ALTER TABLE SITUASJON RENAME TO OPPFOLGINGSTATUS; ALTER TABLE OPPFOLGINGSTATUS RENAME COLUMN OPPFOLGING TO UNDER_OPPFOLGING; ALTER TABLE OPPFOLGINGSTATUS RENAME COLUMN GJELDENDE_STATUS TO GJELDENDE_MA...
<gh_stars>10-100 /* Short database description "Computer firm": The database scheme consists of four tables: Product(maker, model, type) PC(code, model, speed, ram, hd, cd, price) Laptop(code, model, speed, ram, hd, screen, price) Printer(code, model, color, type, price) The table "Product" includes information about...
SELECT subq_0.c2 AS c0, subq_0.c2 AS c1, subq_0.c1 AS c2, subq_0.c3 AS c3, subq_0.c0 AS c4, subq_0.c1 AS c5, subq_0.c0 AS c6, subq_0.c3 AS c7, CASE WHEN subq_0.c2 IS NOT NULL THEN 75 ELSE 75 END AS c8, subq_0.c3 AS c9, subq_0.c2 AS c10, CAST(coales...
<reponame>kanhiyaa/leetcode-js SELECT s1.id, COALESCE(s2.student, s1.student) AS student FROM seat s1 LEFT JOIN seat s2 ON ((s1.id + 1) ^ 1) - 1 = s2.id ORDER BY s1.id;
<reponame>dyachaliin/foxpoll<filename>src/sql/main.sql -- MySQL Script generated by MySQL Workbench -- Thu Dec 2 12:31:04 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOR...
CREATE SEQUENCE user_seq; CREATE TABLE USERS ( user_name varchar(255) PRIMARY KEY DEFAULT nextval('user_seq'), date_of_birth DATE NOT NULL, reputation INT NOT NULL, enabled BOOLEAN NOT NULL ); CREATE SEQUENCE comment_seq; CREATE TABLE IF NOT EXISTS COMMENTS ( id INT PRIMARY KEY DEFAULT nextval('c...
<reponame>majia2968/Mental-Health-eScreening /* -- Query: select * from survey_template LIMIT 0, 1000 -- Date: 2015-04-08 18:15 */ INSERT INTO `survey_template` (`survey_template_id`,`survey_id`,`template_id`,`date_created`) VALUES (1,2,3,'2015-02-21 06:15:05'); INSERT INTO `survey_template` (`survey_template_i...
<gh_stars>0 # # Table structure for table `mm_items` # CREATE TABLE `mm_items` ( `itemid` int(11) NOT NULL auto_increment, `menuid` int(11) NOT NULL default '0', `text` text, `url` varchar(255) default NULL, `showmenu` varchar(40) default NULL, PRIMARY KEY (`itemid`) ) TYPE=MyISAM AUTO_INCREMENT=50 ; # #...
SET NAMES utf8; -- -- Sample data for groups -- INSERT INTO groups(name, sess_seconds, updated) VALUES ("Trial", 3600, "2017-10-15"), ("Basic", 7200, "2017-10-15"), ("Premium", 7200, "2017-10-16"); -- -- Sample data for images -- INSERT INTO images(width, height, url, title, artist, gallery, organization, media, up...
<gh_stars>0 CREATE TABLE Scores (`Id` int, `Score` decimal(5,2)) ; INSERT INTO Scores (`Id`, `Score`) VALUES (1, 3.50), (2, 3.65), (3, 4.00), (4, 3.85), (5, 4.00), (6, 3.65) ;
-- generared using -- curl "https://api.mockaroo.com/api/910b6c20?count=100&key=90eac760" > seed.sql -- -- want different data? check: https://www.mockaroo.com/910b6c20 -- /* Japan, Sharon*/ insert into products (name, description, code, price, category_japans_ID, category_indisch_ID, category_nederlands_ID, Categor...
SET IDENTITY_INSERT [dbo].[Tutors] ON INSERT INTO [dbo].[Tutors] ([Id], [Name], [Experience], [HourlyPrice], [Rate], [Email], [LanguageId]) VALUES (1, N'Lucy', 1, 20, N'4.0', N'<EMAIL>', 1) INSERT INTO [dbo].[Tutors] ([Id], [Name], [Experience], [HourlyPrice], [Rate], [Email], [LanguageId]) VALUES (2, N'Shiyi', 1.5, 2...
-- CreateTable CREATE TABLE "SensorData" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "datetime" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "value" REAL NOT NULL, "sensorId" TEXT NOT NULL, CONSTRAINT "SensorData_sensorId_fkey" FOREIGN KEY ("sensorId") REFERENCES "SensorInfo" ("id") ON DELETE...
update estados set nome = "Mendes", sigla = "MS" where estadoID = 31; select * from mendes.estados;
-- drcp_connection_monitor.sql -- <NAME> -- var n_cpool_pct_threshold number exec :n_cpool_pct_threshold := 85 with max_pools as ( select maxsize max_pool_count from DBA_CPOOL_INFO ), conn_info as ( select distinct inst_id , count(*) over (partition by inst_id) drcp_connection_count -- includes waiting, acti...
DROP INDEX IF EXISTS product_id_index; DROP INDEX IF EXISTS features_id_index; DROP INDEX IF EXISTS styles_multicol_index; DROP INDEX IF EXISTS skus_styleid_index; DROP INDEX IF EXISTS photos_styleid_index; DROP INDEX IF EXISTS related_current_index; CREATE INDEX product_id_index ON products (id); CREATE INDEX featu...
<filename>packages/graphile-utils/__tests__/utils-schema.sql -- WARNING: this database is shared with postgraphile-core, don't run the tests in parallel! drop schema if exists graphile_utils cascade; create schema graphile_utils; create type graphile_utils.complex as ( number_int int, string_text text ); create ...
<filename>s-06-ilap-sucursal-trigger.sql --@Author: <NAME> -- <NAME> <NAME> --@Fecha creación: 03/12/2018 --@Descripcion: Creacion de trigger para la tabla sucursal ---SUCURSAL--- create or replace trigger t_dml_sucursal instead of insert or update or delete on sucursal declare --programar begin case when i...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 24, 2021 at 09:57 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>Zd092718/project2<filename>db/schema.sql DROP DATABASE IF EXISTS calendar_db; CREATE DATABASE calendar_db;
/* Initialize the dynamic aspects of the query. */ set @edition_name := '<NAME>', @rarity = 'R', @status = 'completed'; /* Top-level query that returns the result set. */ select `product_id`, `name`, `qty` + `total_sold` - `total_bought` as `initial`, `qty` as `current_nm_qty`, `total_sold`, `tota...
<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Stored Procedures/uspVacancyLocationDelete.sql CREATE PROCEDURE [dbo].[uspVacancyLocationDelete] @VacancyLocationId int AS BEGIN SET NOCOUNT ON BEGIN TRY DELETE FROM VacancyLocation WHERE VacancyLocationId = @VacancyLocationId E...
create external SCALAR SCRIPT pi() RETURNS double AS # redirector @@redirector_url@@ import math def run(ctx): return math.pi / create external SCALAR SCRIPT double_mult("x" double, "y" double) RETURNS double AS # redirector @@redirector_url@@ def run(ctx): if ctx.x is None or ctx.y is None: return None e...
# (Lifted from Horde.org --ryan.) # # If you are installing Horde for the first time, you can simply # direct this file to mysql as STDIN: # # $ mysql --user=root --password=<MySQL-root-password> < mysql_create.sql # # If you are upgrading from a previous version, you will need to comment # out the the user creation s...
drop table records if exists; create table records ( id int, odt timestamp with time zone ); insert into records (id, odt) values (1, '2018-01-02 11:22:33.123456000+01:23');
<reponame>cixr0x/siged # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table actualizacion ( id bigint auto_increment not null, texto varchar(255), fecha datetime, pe...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: berni3 * Created: Jun 20, 2019 */ /* CSV (Comma Separated Values) Support The CSV file support can be used inside t...
-- start query 44 in stream 0 using template query44.tpl SELECT asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing FROM (SELECT * FROM (SELECT item_sk, Rank() OVER ( O...
/* Drop Tables */ DROP TABLE FILE_HISTORY; DROP TABLE FILE_RELEASED; DROP TABLE MAIL_RECEIVE; DROP TABLE MAIL_SEND; DROP TABLE MSG_EMAIL; DROP TABLE MSG_INTERNAL; DROP TABLE MSG_REMIND; DROP TABLE NEWS_HISTORY; DROP TABLE WS_FILES; DROP TABLE WS_NEWS; DROP TABLE WS_POST; /* Create Tables */ -- 文件下载记录 CREATE TABL...
--# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * WLM Service Classes */ CREATE OR REPLACE VIEW DB_SERVICE_CLASSES AS SELECT COALESCE(S.PARENTSERVICECLASSNAME || '.' ,'') || S.SERVICECLASSNAME AS SERVICE_CLASS , CPUSHARES || CASE CPUSHARETYPE WHEN 'H' ...
--Test decode() function omitting default create class t1 (a integer, b varchar(20), c date); insert into t1 values(999, 'nhn', DATE '05/09/2008'); insert into t1 values(888, 'nhnChina', DATE '05/10/2008'); insert into t1 values(777, 'nhnKorea', DATE '05/8/2008'); insert into t1 values(666, 'nhnJapan', DATE '05/7/2008...
<gh_stars>0 -- @testpoint: covar_samp函数入参是空值的验证 select covar_samp('',''); select covar_samp(null,null); select covar_samp(''+null,''+null); select covar_samp(''*null/null,''*null/null);
<filename>migrations/orders/schema/20200211000002_create_electronic_orders.up.sql CREATE TABLE electronic_orders ( id uuid PRIMARY KEY, orders_number text NOT NULL, edipi text NOT NULL, issuer text NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); CREAT...
<reponame>iamjovith18/emasystem -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 18, 2019 at 05:33 PM -- Server version: 10.3.14-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time...
<gh_stars>0 -- -- Table structure for table `comments` -- CREATE TABLE IF NOT EXISTS `comments` ( `cmt_id` int(8) NOT NULL AUTO_INCREMENT, `person` varchar(50) NOT NULL, `person_id` int(8) NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`) );
<reponame>davitonP/IPI_MR -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-05-2018 a las 23:58:44 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
<reponame>fdjskla/2020-08-otus-spring-golubkov DROP TABLE IF EXISTS BOOKS; DROP TABLE IF EXISTS AUTHORS; DROP TABLE IF EXISTS GENRES; CREATE TABLE BOOKS(ID BIGINT AUTO_INCREMENT PRIMARY KEY, TITLE VARCHAR(255), TEXT CLOB, AUTHOR_ID BIGINT, GENRE_ID BIGINT); CREATE TABLE AUTHORS(ID BIGINT AUTO_INCREMENT PRIMARY KEY, NA...
--A dummy database for price entries INSERT INTO price (price, currency, vehicle_id) VALUES (100000, 'USD', 1); INSERT INTO price (price, currency, vehicle_id) VALUES (1000, 'USD', 2); INSERT INTO price (price, currency, vehicle_id) VALUES (10000, 'USD', 3); INSERT INTO price (price, currency, vehicle_id) VALUES (1500...
<gh_stars>0 CREATE TABLE IF NOT EXISTS city ( "id" bigserial primary key, "city" varchar(255) NOT NULL, "state" varchar(255) NOT NULL, "col" bigserial NOT NULL, "rent" bigserial NOT NULL ); -- Dumping data for table php_dev.city: ~26 rows (approximately) /*!40000 ALTER TABLE "city" DISABLE KEYS */; INSERT IN...
SELECT "CommonGovernment_5"."funding_agency_name" AS "funding_agency_name" FROM "CommonGovernment_5" GROUP BY 1;
-- -----MAIN DATABASE SCHEMA----- DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department ( id int NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE role ( id int NOT NULL AUTO_INCREMENT, title varchar(30) NOT NULL, sala...
# Descripción: Ejercicio 3.6 # Autor: <NAME> # Fecha: 25/09/2020 # Enunciado: # Utilizar la vista generada en el ejercicio 3.4 (Lo hago del ejercicio 3.5 porque no existe tal tabla del ejercicio 3.4) # # Objetivo de ejercicio: generar vista de un CUIT, IdFactura y el total de la factura # Desarrollo # Nota: Antes de ...
<gh_stars>1-10 CREATE TABLE [dbo].[Gruppi] ( [Id] INT NOT NULL PRIMARY KEY, [Nome] VARCHAR(200) NOT NULL, [Immagine] VARBINARY(MAX) NOT NULL )
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 10, 2019 at 05:52 PM -- 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 time_zone = "+00:00"; /*!40101 SET @O...
CREATE MATERIALIZED VIEW dm.metadata_pre_view AS SELECT study.*, sed.study_event_definition_id AS event_id, sed.oc_oid AS event_oid, sed.ordinal AS event_order, sed.name AS event_name, sed.date_created AS event_date_created, sed.date_updated AS event_date_updated, sed.repeating AS event_repeating, crf...
-- ============================================= -- Author: -- Create date: -- Description: -- Directions for use: -- Replace YourEDW with the name of your specific EDW. -- Insert your columns at line 15. -- Replace YourDimensionName with the name of your dimension. -- Put your columns in the row hash being careful to ...
/* SQL para criação de relatório Carta de Cobrança Parametros: CODTURMA CREATE BY Bitts (22/08/2016) */ SELECT G.CODTURMA AS TURMA, F.RA, I.NOME AS ALUNO, G.CODSTATUS , J.DESCRICAO, G.IDPERLET, K.DESCRICAO AS PERIODO_LETIVO, B.IDCFO, B.NOMEFANTASIA AS RESPONSAVEL_FINANCEIRO, E.NOME AS SERVICO, D.PAR...
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/attach.test_46.sql -- attach.test -- -- execsql { -- ATTACH DATABASE 'test2.db' AS db2; -- INSERT INTO db2.t3 VALUES(13,14); -- INSERT INTO main.t3 VALUES(15,16); -- } ATTACH DATABASE 'test2.db' AS db2; INSERT INTO db2.t3 VALUES(13,14); INSERT INT...
BEGIN; ALTER TABLE `rolle_last_query` CHANGE `sql` `sql` LONGTEXT NOT NULL; COMMIT;
<filename>bdd/tsv_tsvnumber.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 = ''; SET default_with_o...
{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %} {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %} {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change...
<filename>Database/dbmsproject.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2016 at 03:44 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
BEGIN; DROP TABLE IF EXISTS campaigns; ALTER TABLE participants DROP COLUMN IF EXISTS Campaign; ALTER TABLE participants ADD COLUMN CampaignName varchar(250) NOT NULL; COMMIT;
INSERT INTO ACT_RU_FILTER(ID_, REV_, RESOURCE_TYPE_, NAME_, OWNER_, QUERY_, PROPERTIES_) VALUES ('8bab5d7b-3c4d-11e5-87de-28cfe91731d7', 1, 'Task', 'All Tasks', NULL, '{}', '{"color":"#EEEEEE","priority":0,"showUndefinedVariable":false,"refresh":true,"variables":[{"name":"vsnr","label":"Versicherungsnummer"}]}'), ('b2f...
<reponame>NCIP/national-biomedical-image-archive /*L Copyright SAIC, Ellumen and RSNA (CTP) Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. L*/ -- move this case back to idri per data owner request update patient ...
-- @testpoint: EXTRACT 时间格式为time时取day合理报错 drop table if exists test_date01; create table test_date01 (clo1 time without time zone ); insert into test_date01 values ('2001-01-31 00:00:00'); select EXTRACT(DAY FROM clo1) from test_date01; drop table if exists test_date01;
-- You can use this file to load seed data into the database using SQL statements -- insert into Member (id, name, email, phone_number) values (0, '<NAME>', '<EMAIL>', '2125551212'); -- insert into DC (id, host, port, username, password) values (0, '127.0.0.1', 9990, 'admin', '<PASSWORD>'); -- insert into DC (id, host...
<reponame>RuhyatMarullah/penggajian -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Jul 2020 pada 15.36 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
<reponame>naveenkod22/MySQL -- 1.4 using and, or, not use sql_store; select * from customers where birth_date > '1990-01-01' and points > 1000; select * from customers where birth_date > '1990-01-01' or points > 1000; select * from customers where birth_date > '1990-01-01' or ( points > 1000 ...
create extension if not exists pgcrypto; update system_control_requirements.usr set password = crypt(password, gen_salt('bf', 8));
CREATE DATABASE IF NOT EXISTS `dutta` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `dutta`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: dutta -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET_CLI...
DROP PROCEDURE IF EXISTS getroles; DELIMITER $$ CREATE PROCEDURE getroles() BEGIN SELECT roles.id AS roles_id,roles.name FROM roles ORDER BY roles.name ASC; END$$ DELIMITER ;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2018 at 11:48 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<reponame>Nike98/Master /* * This program is the basic implementation * of giving a particular rating based on * an integer input from the user with * method of creating a function for it. */ SET SERVEROUTPUT ON; SET VERIFY OFF; -- Creating the Function CREATE OR REPLACE FUNCTION rating_msg(rating in numbe...
<reponame>Cyecize/SiberianHealthMontana -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 02, 2018 at 05:20 PM -- Server version: 5.7.21 -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...