sql
stringlengths
6
1.05M
<reponame>darknegma/docker-airflow use role "AIRFLOW_SERVICE_ROLE"; use database "MARKETING"; use schema "DATAXU"; create table "ETL_FILES_LOADED" ( "TABLE_NAME" varchar, "FILE_NAME" varchar, "DATE_LOADED" datetime );
CREATE TABLE [dbo].[TMechanicalWagonCouplerType] ( --From MergedXSDs XSD --From 'genericRailML' Namespace [TMechanicalWagonCouplerTypeId] BIGINT NOT NULL, [DesignType] NVARCHAR(MAX) NOT NULL, [PositionOnCarEnd] TINYINT NOT NULL, [CouplingHeightValue] DECIMAL(18, 6) NOT NULL, [CouplingHeightValueSpec...
INSERT INTO vehiculos( marca, modelo, placa , id_cliente) VALUES ('Chevrolet','2022', 'FXC123', 1); INSERT INTO conductores( nombre, apellido, fecha_nacimiento , cedula, email,telefono,foto) VALUES ('test','test', now(), 'test', 'test','test', 'test'); INSERT INTO clientes( nombre, apellido, fecha_nacimiento , cedul...
INSERT INTO PRIVILEGE (privilege_id, name, description) VALUES (1, 'PRIVILEGE_ADMIN_READ', 'description for privilege admin read'); INSERT INTO PRIVILEGE (privilege_id, name, description) VALUES (2, 'PRIVILEGE_USER_READ', 'description for privilege user read'); INSERT INTO ROLE (role_id, name, description) VALUES (1, ...
<reponame>foreseaz/chain-index<filename>migrations/20200428171324_create_activity_type_enum.up.sql CREATE TYPE activity_type AS ENUM ( 'genesis', 'transfer', 'deposit', 'unbond', 'withdraw', 'nodejoin', 'unjail', 'reward', 'jail', 'slash', 'nodekicked' );
create unique index MOD_IX on TAB_INDEX ( COL_ADD_IX_1,COL_ADD_IX_2 ) compress parallel 4; create index ADD_IX on TAB_INDEX ( COL_ADD_IX_2 ) compress parallel 4;
<gh_stars>1-10 with ips as (select distinct ld.device_pk as "Listening Device PK" ,ld.name as "Listening Device Name" ,cd.device_pk as "Client Device PK" ,cd.name as "Client Device Name" ,coalesce(ld.service_level, '') as "Listening Dev...
-- Name: InsertDistinguishedDigest -- Schema: posda_files -- Columns: [] -- Args: ['pixel_digest', 'type_of_pixel_data', 'sample_per_pixel', 'number_of_frames', 'pixel_rows', 'pixel_columns', 'bits_stored', 'bits_allocated', 'high_bit', 'pixel_mask', 'num_distinct_pixel_values'] -- Tags: ['duplicates', 'distinguished_d...
<reponame>JaneliaSciComp/DatabaseScripts<gh_stars>0 -- =================== -- -- Grant Privs -- -- =================== -- GRANT ALL PRIVILEGES ON odor.* TO odorAdmin@'%'; GRANT SELECT,INSERT,UPDATE,DELETE ON odor.* TO odorApp@'%'; GRANT SELECT ON odor.* TO odorRead@'%';
<reponame>ohbus/PJP SELECT last_name,job_id,salary FROM employees WHERE (job_id='SA_REP' or job_id='ST_CLERK') AND salary NOT IN (2500,3500,7000);
set timezone 'Asia/Seoul'; select addtime('2015-01-01 1:00:00 AM +9:00',time'13:59:1'); select addtime('2015-01-01 1:00:00.123 PM -1:00',time'13:59:1'); select addtime('2015-01-01 1:00:00 AM Asia/Seoul',time'13:59:1'); select addtime('2015-01-01 1:00:00 AM Asia/Seoul','2015-1-1 13:59:1'); set timezone '+8:00'; sele...
<gh_stars>0 USE TableRelations GO CREATE TABLE Students ( StudentID INT IDENTITY, [Name] NVARCHAR(50) NOT NULL, CONSTRAINT PK_Students PRIMARY KEY (StudentID) ) CREATE TABLE Exams ( ExamID INT IDENTITY(101, 1), [Name] NVARCHAR(50) NOT NULL, CONSTRAINT PK_Exams PRIMARY KEY (ExamID) ) GO CREATE T...
<filename>sql/model.sql create database izma; create extension if not exists "uuid-ossp"; create extension "pgcrypto"; create table countries ( country_id uuid not null default uuid_generate_v4() primary key, country_name varchar(64) not null ); create table regions ( region_id uuid not null default uuid_generate...
<reponame>rahulsubagio/Hello-Tube -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 22 Okt 2020 pada 18.37 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
execute dbms_system.kcfrms;
DROP TABLE IF EXISTS posts; DROP TYPE IF EXISTS imgext; DROP TYPE IF EXISTS rating; DROP TABLE IF EXISTS tags; DROP TABLE IF EXISTS users; DROP TYPE IF EXISTS perms; DROP EXTENSION IF EXISTS tag_parser CASCADE;
<reponame>fujianjie/fast-crud-php -- phpMyAdmin SQL Dump -- version 4.4.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2018-05-18 09:23:22 -- 服务器版本: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
<reponame>athos54/iescomercioAsirPhp USE negocios2011 GO create FUNCTION dbo.productosmasvendidosbien(@IDCLI char(5)) RETURNS @T TABLE (IDprod CHAR(5),NOMpro VARCHAR(30) ,cant decimal(10,2)) AS BEGIN declare @T2 TABLE (IDprod CHAR(5),NOMpro VARCHAR(30) ,cant decimal(10,2)) insert into @T2 SELECT TOP 5 pro.idpr...
/* SQLITE Backup Source Server Version: 3.12.2 Source Database: main Date: 2018/2/1 18:46:15 */ -- ---------------------------- -- Table structure for "circles" -- ---------------------------- DROP TABLE IF EXISTS "circles"; CREATE TABLE "circles" ( "id" INTEGER NOT NULL, "circle_name" TEXT NOT NULL, "x" REAL NOT...
<filename>Mercury.Database/Mercury.Database.Environment.Dal/Schema Objects/Schemas/dal/Views/ServiceAnalysisLabResult.view.sql CREATE VIEW [dal].[ServiceAnalysisLabResult] AS SELECT *, ReportedDate AS PaidDate FROM dbo.LabResult
SELECT ogc_fid AS t_id, wkb_geometry AS geometrie, location FROM alw_grundlagen.drainagen WHERE archive = 0 ;
<reponame>vmartos/coolstore-microservices INSERT INTO inventory.inventories (id,"location",description,website,created,updated) VALUES ('90c9479e-a11c-4d6d-aaaa-0405b6c0efcd','Vietnam','This store sells electronic gadgets','https://coolstore-vn.com','2020-10-31 15:34:05.144',NULL) ,('b8b62196-6369-409d-b709-11c112dd02...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Des 2021 pada 01.57 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
create table Orders ( product_id int null, order_date date null, unit int null ); INSERT INTO leetcode_easy.Orders (product_id, order_date, unit) VALUES (1, '2020-02-05', 60); INSERT INTO leetcode_easy.Orders (product_id, order_date, unit) VALUES (1, '2020-02-10', 70); INSERT INTO leetcode_easy.Ord...
<filename>sql/tasks.sql create table tasks( task_id int(11) not null auto_increment primary key, worker varchar(40), task_venue enum('Wikipedia','Wikipedia Views','Effective Altruism Forum','LessWrong','Personal website','Wikimedia meta','wikiHow','Quora','Market subwiki','Donations list website', 'Contract work...
<gh_stars>0 DELIMITER / CREATE TABLE IACUC_PROTOCOL_ATTACHMENT_TYPE ( TYPE_CD VARCHAR(3), DESCRIPTION VARCHAR(300) NOT NULL, VER_NBR DECIMAL(8,0) default 1 NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR(60) NOT NULL, OBJ_ID VARCHAR(36) NOT NULL ) ENGINE InnoDB CHARACT...
<filename>migrations/sqls/20210319142611-create-transaction-calculation-cols-up.sql<gh_stars>1-10 ALTER TABLE water.billing_transactions ADD COLUMN calc_source_factor NUMERIC, ADD COLUMN calc_season_factor NUMERIC, ADD COLUMN calc_loss_factor NUMERIC, ADD COLUMN calc_suc_factor NUMERIC, ADD COLUMN c...
<filename>sql/functions/history_values.sql print ' Generating history value functions...' if object_id('[orm_meta].[history_values_string]', 'IF') is not null drop function [orm_meta].[history_values_string] go create function [orm_meta].[history_values_string] ( @instance_guid uniqueidentifier , @property_guid ...
<filename>db/migrations/1907012147_add_index_sType_on_groups.sql -- +migrate Up ALTER TABLE `groups` ADD INDEX `sType` (`sType`); -- +migrate Down ALTER TABLE `groups` DROP INDEX `sType`;
<filename>Database/dbo/Tables/StaticContent.sql ------------------------------------------------------- -- Title : Create of Table StaticContent -- Description : Create of Table StaticContent -- Input : N/A. -- Output : N/A. -- Author : v-pladdh -- Date : 15 D...
--------------------------------------------------------------- -- table: --------------------------------------------------------------- -- drop table ons_census_sw_ethnicity create table ons_census_sw_ethnicity ( oa_code character varying(9), total integer, white integer, white_british integer, ...
-- MySQL Script generated by MySQL Workbench -- 08/08/19 10:13:20 -- Model: New Model Version: 1.0 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'; -- -----------...
USE tragosdb; CREATE TABLE trago ( id MEDIUMINT NOT NULL AUTO_INCREMENT, nombre VARCHAR(60), texto mediumtext, ingredientes mediumtext, recomendado BOOLEAN, idCat MEDIUMINT, PRIMARY KEY (id), FOREIGN KEY (idCat) REFERENCES cat(id) ); SELECT * FROM trago; CREATE TABLE cat ( id MEDIUMI...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 06, 2016 at 06:09 PM -- Server version: 5.6.24 -- PHP Version: 5.5.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<filename>migrations/2020-09-29-120709_create_place/down.sql DROP TABLE places;
<reponame>awiel/aireas-data-pg<gh_stars>1-10 -- DROP FUNCTION get_grid_gem_cell_hist_avg_sub(avg_type CHARACTER VARYING(60), hist_year INTEGER, hist_month INTEGER, hist_day INTEGER, gid INTEGER ) -- test: select get_grid_gem_cell_hist_avg_sub('PM1','2014', null, null, 477); CREATE OR REPLACE FUNCTION public.get_grid_ge...
<gh_stars>1-10 :r .\MultiUserMode.sql
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 22, 2016 at 11:09 AM -- 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_CLIENT=@@CHARACTER_...
<reponame>BugsUK/FindApprenticeship CREATE PROCEDURE [dbo].[uspTrainingProviderSelectFrameworksById] @ProviderSiteId INT ,@ProviderSiteRelationTypeId INT ,@ProviderId INT ,@OccupationId INT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; ...
<reponame>pradeepkumarcm-egov/DIGIT-Dev DROP TABLE eg_address; DROP TABLE eg_correspondence_address; DROP TABLE eg_permanent_address; DROP SEQUENCE seq_eg_address;
<gh_stars>1-10 --Trabajamos con la tabla "libros" de una librería. --Eliminamos la tabla si existe y la creamos nuevamente: if object_id('libros') is not null drop table libros; create table libros( codigo int identity, titulo varchar(40), autor varchar(30), editorial varchar(20), precio decimal(5,2), ...
<filename>data/train/sql/ed3153cc8709a7c8de169721d4bd615cab051c62sam_test_ua.sql DROP TRIGGER IF EXISTS `sam_test_ua`// CREATE definer=`dbadmin`@`localhost` trigger `sam_test_ua` AFTER UPDATE ON `sam_test` FOR EACH ROW /* $Rev: 6928 $ $Author: randall.stanley $ $Date: 2009-04-10 10:08:29 -0400 (Fri, 10 Apr 2009) ...
<reponame>darmie/pgsql-parser CREATE TABLE table_without_pg_catalog ( bigint_type bigint, bigserial_type bigserial, bit_opt_1_type bit(1), bit_opt_2_type bit(2), bit_opt_16_type bit(16), bit_varying_opt_1_type varbit(1), bit_varying_opt_2_type varbit(2), ...
<gh_stars>1000+ -- 2018-03-27T16:38:30.890 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET IsMandatory='N',Updated=TO_TIMESTAMP('2018-03-27 16:38:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541211 ;
<filename>migrations/sqls/20190827110406-alter-pgcryto-extension-schema-up.sql alter extension pgcrypto set schema public;
-- 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. PRINT N'Creating primary key [StudentSpecialEducat...
<filename>notes01052015.sql -- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686) -- -- Host: localhost Database: notes -- ------------------------------------------------------ -- Server version 5.5.41-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
<reponame>tharangar/k8s-webserver<gh_stars>1-10 -- -- PHPOE-2421 -- DROP TABLE `import_mapping`; ALTER TABLE `z_2421_import_mapping` RENAME `import_mapping`; DELETE FROM `db_patches` WHERE `issue` = 'PHPOE-2421'; UPDATE config_items SET value = '3.4.5' WHERE code = 'db_version';
CREATE TABLE "ATTRIBUTES" ( "ATTRIBUTE_ID" NUMBER NOT NULL ENABLE, "COLLECTION_OBJECT_ID" NUMBER NOT NULL ENABLE, "DETERMINED_BY_AGENT_ID" NUMBER NOT NULL ENABLE, "ATTRIBUTE_TYPE" VARCHAR2(60 CHAR) NOT NULL ENABLE, "ATTRIBUTE_VALUE" VARCHAR2(4000) NOT NULL ENABLE, "ATTRIBUTE_UNITS" VARCHAR2(60 CHAR), ...
<gh_stars>10-100 CREATE TYPE public.typ_enum AS ENUM ( 'e-1', 'e0', 'e1', 'e2', 'e2.5', 'e3' );
-- 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 may...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CT -- CREATE ROLE ct_user1; CREATE ROLE ct_user2; CREATE ROLE ct_user3; CREATE ROLE ct_user4; CREATE ROLE ct_admin; CREATE TABLE ct_foo1 (i int, j int) DISTRIBUTED RANDOMLY; ALTER TABLE ct_foo1 OWNER TO ct_user1; CREATE TABLE ...
<gh_stars>100-1000 select `i_brand_id` as `brand_id`, `i_brand` as `brand`, sum(`ss_ext_sales_price`) as `ext_price` from `date_dim` where `d_date_sk` = `ss_sold_date_sk` and `ss_item_sk` = `i_item_sk` and `i_manager_id` = 28 and `d_moy` = 11 and `d_year` = 1999 group by `i_brand`, `i_brand_id` order by `ext_price` des...
SELECT _object_key, preferred, mgiid, subtype, short_description FROM gxd_genotype_summary_view
-- @testpoint: opengauss关键字raw非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists raw_test; create table raw_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists raw; create index raw on raw_test(id); drop index raw; --关键字带双引号-成功 drop index if exists "raw"; create index "raw" on raw_test(id); drop ind...
<reponame>vs8871/auth-repo ALTER TABLE order_info RENAME TO order_information; ALTER TABLE product_info RENAME TO product_information;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: database:3306 -- Generation Time: Mar 08, 2021 at 12:29 AM -- Server version: 8.0.23 -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `ad` -- CREATE DATABASE IF...
INSERT INTO topics (id, value) values (1, 'Car Sharing'); INSERT INTO topics (id, value) values (2, 'Bike Sharing'); INSERT INTO topics (id, value) values (3, 'Bus and Metro'); INSERT INTO topics (id, value) values (4, 'Traffic');
--------------------------------- GUÍA SQL --------------------------------- -- Creación de tabla con la que se va a trabajar: CREATE TABLE usuario ( id INT PRIMARY KEY AUTO_INCREMENT, usuario VARCHAR(20), nombre VARCHAR(20), nivel TINYINT, email VARCHAR(50), telefono VARCHAR(20), marca VARCHAR(2...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2020 at 08:52 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>svyGroupingGridDemo_e2e/sql/onStartup/V1__create_tables.sql<gh_stars>1-10 -- insert into SETUP (ID, NAME) values (1, 'Axel'); -- insert into SETUP (ID, NAME) values (2, '<NAME>'); -- insert into SETUP (ID, NAME) values (3, '<NAME>'); CREATE TABLE IF NOT EXIST test(name text, country text, city text, date time...
<gh_stars>1-10 -- Extended event definition to track down lease expiry -- Extended event target can be modified to change storage, rollover, buffer or target specifications CREATE EVENT SESSION [LeaseTimeoutEvents] ON SERVER ADD EVENT sqlserver.availability_group_lease_expired, ADD EVENT sqlserver.hadr_ag_lease_renewa...
<filename>test/fixtures/dialects/tsql/create_table_with_sequence.sql<gh_stars>1000+ CREATE TABLE DEST.MELDER( [ID] INT PRIMARY KEY NOT NULL DEFAULT NEXT VALUE FOR [dbo].[SEQ_MELDER] ,[DOWNLOADED_TOTAL] INT NULL ,[WARNED_DAILY] INT NULL ,[DATE_OF_REPORT] DATETIME NULL ,DATE_LAST_INSERTED DA...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : ssh Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-08-19 13:54:51 */ SET FOREIGN_KEY_CHEC...
<gh_stars>10-100 create table template ( id int identity not null, appng_version nvarchar(255), description nvarchar(255), displayName nvarchar(255), long_desc nvarchar(255), name nvarchar(255), template_version nvarchar(255), timestamp nvarchar(255), version datetime2, primary key (id) ); create table templ...
CREATE DATABASE IF NOT EXISTS `mems_cardio` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mems_cardio`; -- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: localhost Database: mems_cardio -- ------------------------------------------------------ -- Server version 5.6.26-log /*!40101 SET @OLD...
<gh_stars>0 drop table int_load; create table int_load ( num NUMBER(10) not null, note VARCHAR2(10) ); insert into int_load (num, note) values (3, 'first'); insert into int_load (num, note) values (4, 'first'); insert into int_load (num, note) values (2, 'first'); insert into int_load (num, note) values (1, '...
<reponame>berthoug/hive SELECT 'Upgrading MetaStore schema from 2.3.0 to 2.3.0.1' AS ' '; SOURCE 041-HOPSWORKS-683.mysql.sql; UPDATE VERSION SET SCHEMA_VERSION='2.3.0.1', VERSION_COMMENT='Hive release version 2.3.0.1' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 2.3.0.1' AS ' ';
-- Verify ggircs-portal:tables/emission_category_001 on pg begin; select pg_catalog.has_table_privilege('ggircs_portal.emission_category', 'select'); rollback;
----------------------------------------------------------------------------------- -- -- Copyright "2015" "Wuppertal Institut" -- ...
SELECT * FROM SURVEY_ITEM_ANSWERS WHERE DELETE_FLAG = 0 ORDER BY INSERT_DATETIME %s LIMIT ? OFFSET ?;
<reponame>lintzc/GPDB -- @Description Tests that update is supported in a subtransaction. -- BEGIN; SAVEPOINT my_savepoint; SELECT COUNT(*) FROM foo WHERE b = 1; UPDATE foo SET b = 1 WHERE a < 4; SAVEPOINT my_savepoint2; ROLLBACK To my_savepoint; SELECT COUNT(*) FROM foo WHERE b = 1; UPDATE foo SET b = 1 WHERE a < 4;...
drop table if exists mpp15087_t; create table mpp15087_t(code char(3), n numeric); insert into mpp15087_t values ('abc',1); insert into mpp15087_t values ('xyz',2); insert into mpp15087_t values ('def',3);
PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns: <http://example.org/ns#> SELECT ?title ?price WHERE { ?x dc:title ?title . OPTIONAL { ?x ns:price ?price . FILTER (?price < "30"^^<http://www.w3.org/2001/XMLSchema#integer>) } }
\! gs_ktool -d all \! gs_ktool -g DROP TABLE IF EXISTS t_distinct; CREATE CLIENT MASTER KEY MyCMK WITH ( KEY_STORE = gs_ktool , KEY_PATH = "gs_ktool/1" , ALGORITHM = AES_256_CBC); CREATE COLUMN ENCRYPTION KEY MyCEK WITH VALUES (CLIENT_MASTER_KEY = MyCMK, ALGORITHM = AEAD_AES_256_CBC_HMAC_SHA256); CREATE TABLE IF NOT E...
<reponame>andahefa/Compra_Venta<filename>casa_empeno.sql # Host: localhost (Version 5.5.5-10.1.30-MariaDB) # Date: 2018-04-22 16:39:07 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "articulo" # DROP TABLE IF EXISTS `articulo`; CREATE TABLE `articulo` ( `id_articulo` int(30) NOT NULL AUTO_INC...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 21, 2021 at 07:28 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 UPDATE `ticket_category` SET available = true;
CREATE TABLE IF NOT EXISTS roles( id smallint PRIMARY KEY AUTO_INCREMENT, roleName VARCHAR(255) NOT NULL ); CREATE TABLE IF NOT EXISTS users ( id bigint PRIMARY KEY AUTO_INCREMENT, username varchar(255) NOT NULL, password varchar(255) NOT NULL, isActive bool NOT NULL DEFAULT FALSE ); CREATE TA...
SELECT * FROM Doctor
DROP TABLE IF EXISTS people; CREATE TABLE people ( id SERIAL PRIMARY KEY, first_name VARCHAR(1000), last_name VARCHAR(1000) );
<reponame>ilonacodes/e-photos<gh_stars>0 create database if not exists ephotos_test; grant all on ephotos_test.* to 'travis'@'localhost';
DROP EXTENSION pg_trgm RESTRICT; DROP EXTENSION pg_stat_statements RESTRICT; DROP EXTENSION pgcrypto RESTRICT;
-- CreateTable CREATE TABLE `Being` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `name` VARCHAR(191) NOT NULL, `last_name` VARCHAR(191) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- CreateTable CREATE TABLE `Partner` ( `id` INTEGER NOT NULL AUTO_INCREMENT, ...
<gh_stars>0 CREATE TABLE "USER"( user_id varchar NOT NULL PRIMARY KEY,roles varchar(45) NOT NULL,PASS_WORD varchar(45) NOT NULL,scopes varchar(45) NOT NULL); CREATE TABLE "CLIENT"(client_id varchar(45) NOT NULL PRIMARY KEY,client_secret varchar(45) NOT NULL,redirect_url varchar(200) NOT NULL,scopes varchar(45) NOT NU...
BEGIN TRANSACTION; CREATE TABLE run ( id INTEGER PRIMARY KEY AUTOINCREMENT, ts_start TEXT, ts_end TEXT, site_count INTEGER DEFAULT 0, page_count INTEGER DEFAULT 0, skipped_count INTEGER DEFAULT 0, error INTEGER DEFAULT 0, -- BOOLEAN options TEXT ) STRICT; CREATE TABLE site ( id INTEGER PRIMARY KEY, ...
-- ALTER TABLE `users` ADD `comment` text not null; ALTER TABLE `epg_setting` ADD `id_prefix` VARCHAR(64) NOT NULL DEFAULT ''; --//@UNDO ALTER TABLE `users` DROP `comment`; ALTER TABLE `epg_setting` DROP `id_prefix`; --
-- In this function we incour in some ambiguity about the returning columns -- https://stackoverflow.com/questions/44075069/why-i-am-getting-column-reference-is-ambiguous -- -- So far, I don't have a full comprehension of this issue, the workaround that I've found -- consists in creating an "_impl" function with prefix...
<gh_stars>1-10 -- DDL script for base table: -- Field - Immunology -- Seed Year - 1990 SET search_path = theta_plus; -- -- Get all immunology articles published in the year 1990 DROP TABLE IF EXISTS theta_plus.imm1990; CREATE TABLE theta_plus.imm1990 TABLESPACE theta_plus_tbs AS SELECT sp.scp FROM public.scopus_publ...
<filename>db/sql/2919__drop_and_create_f_5_4_Ammattikorkeakoulujen_tutkimus_ja_kehitys_rahoitus.sql<gh_stars>1-10 USE [VipunenTK_DW] GO /****** Object: Table [dbo].[f_5_4_Ammattikorkeakoulujen_tutkimus_ja_kehitys_rahoitus] Script Date: 25.3.2020 9:22:58 ******/ DROP TABLE [dbo].[f_5_4_Ammattikorkeakoulujen_tutkimu...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 03, 2018 at 03:22 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
<gh_stars>1-10 --Create view with schemabinding. IF OBJECT_ID ('ActiveEntity', 'view') IS NOT NULL DROP VIEW ActiveEntity ; GO CREATE VIEW ActiveEntity WITH SCHEMABINDING AS SELECT E.Ident, E.EntityTypeIdent, E.FullName, E.DisplayName, E.NPI, E.DBA, E.OrganizationName, E.Prefix, E.FirstName, E.M...
<reponame>Ambal/mangos<filename>sql/updates/0.7/3402_creature_onkill_reputation.sql DROP TABLE IF EXISTS `creature_onkill_reputation`; CREATE TABLE `creature_onkill_reputation` ( `creature_id` int(10) unsigned NOT NULL default '0' COMMENT 'Creature Identifier', `RewOnKillRepFaction1` int(10) default '0', `RewOnKi...
SELECT c.id category_id, c.category, p.title, p.views, p.post_id FROM categories c LEFT JOIN ( SELECT category_id, title, views, id post_id, row_number() over (partition BY category_id ORDER BY views DESC, id) rn FROM posts) p ON p.category_id = c.id AND p.rn < 3 ORDER BY category, vie...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 172.16.31.10 Source Server Type : Oracle Source Server Version : 110200 Source Host : 172.16.31.10:1521 Source Schema : CDM Target Server Type : Oracle Target Server Version : 110200 File Encoding : 65001 D...
-- Verify ggircs-portal:tables/application_005 on pg begin; do $$ begin if (select exists(select * from pg_trigger t join pg_class c on t.tgrelid = c.oid and c.relname = 'application' and t.tgname = '_send_draft_application_email')) then raise exception '_send_draft_applic...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- Reset the gucs Alter database dsp_db1 set gp_default_storage_options to default; Alter role dsp_role1 set gp_default_storage_options to default; select rolname, rolconfig from pg_roles where rolname in ('dsp_role1', 'dsp_role2', 'ds...
<gh_stars>0 DROP DATABASE math; CREATE DATABASE math CHARACTER SET utf8 COLLATE utf8_general_ci; USE math; create table users ( user_id int PRIMARY KEY AUTO_INCREMENT, user_name text, user_passwort_hash text, access_token text ); create table authors ( author_id int PRIMARY KEY AUTO_INCREMENT,...
<reponame>denis-yevduschenko/yii-repo -- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 21, 2017 at 10:13 -- Server version: 5.5.48-log -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
autocommit off; commit; drop table if exists t1; drop table if exists t2; create table t1 (col int); create table t2 (col int); create trigger trg before update on t1 execute insert into t2 values (new.col); insert into t1 values (0); drop table t2; create table t2 (col int); update t1 set col = 3; select * from t1; ...