sql
stringlengths
6
1.05M
USE SREPS; CREATE TABLE Categories ( CategoryID INT NOT NULL AUTO_INCREMENT, CategoryName VARCHAR(200) NOT NULL, CategoryDescription VARCHAR(500), PRIMARY KEY(CategoryID) ); CREATE TABLE Products ( ProductNumber INT NOT NULL, ProductName VARCHAR(200) NOT NULL, ProductDescription VARCHAR(50...
<gh_stars>1-10 INSERT INTO sms_alerts (citation_number,court_date,zone_id,phone_number,date_of_birth) VALUES (:citationNumber,:courtDateTime,:zoneId,:phoneNumber,:dob)
-- -- PostgreSQL database dump -- -- Dumped from database version 10.1 -- Dumped by pg_dump version 10.1 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_m...
INSERT INTO egf_instrumenttypeproperty( id, transactiontype, reconciledoncreate, statusoncreateid, statusonupdateid, statusonreconcileid, instrumenttypeid, createdby, createddate, lastmodifiedby, lastmodifieddate, tenantid, version) VALUES ('25e9cd51-e27d-4ece-8ce2-f4da53bb3436...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [AbpDynamicEntityPropertyValues]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [TenantId] [int] NULL, [DynamicEntityPropertyId] [int] NOT NULL, [EntityId] [nvarchar](max) NULL, [Value] [nvarchar](max) NOT NULL, CONSTRAINT [PK_AbpDynamicEntit...
<gh_stars>10-100 CREATE OR REPLACE FUNCTION tap_ao(_instrument_id BIGINT, _from DATE, _to DATE) RETURNS TABLE("close_date" DATE, ao DOUBLE PRECISION) LANGUAGE plpgsql AS $$ DECLARE BEGIN RETURN QUERY WITH hl AS ( SELECT m.close_date, m.medprice FROM tap_medprice(_instrument_id, _from - 64, _to) m )...
<filename>src/test/resources/sql/_unknown/4981c06d.sql<gh_stars>10-100 -- file:create_am.sql ln:42 expect:true BEGIN
<gh_stars>10-100 -- +goose Up -- +goose StatementBegin CREATE TABLE IF NOT EXISTS rooms( id BIGSERIAL PRIMARY KEY, user_id text NOT NULL, room_id text NOT NULL, room_alias text NOT NULL, room_path text NOT NULL, UNIQUE(user_id, room_id), created_at timestamp WITH time zone DEFAULT now(), ...
<gh_stars>0 ALTER TABLE PROPOSAL_ADMIN_DETAILS MODIFY INST_PROPOSAL_ID NUMBER(12,0);
<reponame>davidhammturner/steampipe-plugin-aws<filename>aws-test/tests/aws_route53_zone/test-hydrate-query.sql select name, tags_src, query_logging_configs from aws.aws_route53_zone where id = '{{ output.zone_id.value }}';
insert into espacio(id, nombre, estado) values(1, 'A00', 'D'); insert into espacio(id, nombre, estado) values(2, 'A01', 'D'); insert into vehiculo (id, placa, id_espacio, tipo_vehiculo, modelo_vehiculo, nombre_propietario, apellido_propietario, fecha_entrada, fecha_salida, precio_base_hora, tot...
<gh_stars>0 CREATE INDEX IF NOT EXISTS chp_tick ON checkpoint (tick); CREATE UNIQUE INDEX IF NOT EXISTS intent_tick ON intent (tick);
/* Source Server : localhost_3306 Source Server Version : 50720 Source Host : localhost:3306 Source Database : renboengine Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-06-11 20:06:02 */ SET FOREIGN_KEY_CHECKS=0; -- --------------------...
/****** Object: StoredProcedure [dbo].[AddCRC32FileAuthentication] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE AddCRC32FileAuthentication /**************************************************** ** ** Desc: Adds a CRC32 fingerprint to a given Protein Collection Entry ** ** Retur...
<gh_stars>1-10 CREATE TABLE `member_assets_detail` ( `id` bigint(20) unsigned NOT NULL COMMENT '主键', `member_id` bigint(20) unsigned NOT NULL COMMENT '会员ID', `bill_no` varchar(50) NOT NULL COMMENT '流水号', `type` int(11) NOT NULL COMMENT '类型(1充值,2商品购买)', `amount` decimal(38,10) NOT NULL COMMENT '变动金额', `balan...
<reponame>SocialGouv/emjpm ALTER TABLE "public"."processus_states" ADD COLUMN "expire_date" timestamptz; ALTER TABLE "public"."processus_states" ALTER COLUMN "expire_date" DROP NOT NULL;
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore CREATE TABLE ct_heap_vacuumanalyze1( text_col text, bigint_col bigint, char_vary_col character varying(30), numeric_col numeric, int_col int4, float_col float4, int_array_col int[], drop_col numeric, before_rename_col int4, change_datat...
<filename>medium/_02_xtests/cases/setops2.sql<gh_stars>1-10 autocommit off; select product_code from all inventory_v i intersection select product_code from dated_inventory_v d where expiry_date > '10/10/92'; rollback;
-- Inserted a set of records into the table INSERT INTO burgers (burger_name, devoured) VALUES ("Bacon Cheeseburger", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Spicy Mex Burger", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Breakfast Burger", false); INSERT ...
<reponame>orcsnren/hackerrank-problem-solving SELECT * FROM (SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY), CITY) WHERE ROWNUM = 1 UNION SELECT * FROM (SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC, CITY) WHERE ROWNUM = 1;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 29, 2022 at 05:03 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>database_file/demogswebtech_adminlite.sql -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 03, 2021 at 04:45 PM -- Server version: 10.3.27-MariaDB-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0;...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2018 at 07:11 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>banksone/spark-dataprocessing CREATE KEYSPACE IF NOT EXISTS vod WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }; CREATE TYPE IF NOT EXISTS vod.id_name ( id int, name text ); CREATE TYPE IF NOT EXISTS vod.id_name ( id int, name text ); CREATE TYPE IF NOT EXISTS vod.iso_nam...
DO $$ BEGIN INSERT INTO feeshares.fee_payments ("PeriodFrom", "PeriodTo","ReferrerClientId", "Amount", "CalculationTimestamp", "Status", "AssetId") SELECT '${PeriodFrom}', '${PeriodTo}', "ReferrerClientId", SUM("FeeShareAmountInTargetAsset"), current_timestamp, 0, "FeeShareAsset" FROM feeshares.fee...
<reponame>VulcanoCorp/Vulcano CREATE DATABASE db_Vulcano; USE db_Vulcano; CREATE TABLE User( Id INT PRIMARY KEY AUTO_INCREMENT, FirstName VARCHAR(60) NOT NULL, UserName VARCHAR(30) NOT NULL UNIQUE, Email VARCHAR(30) NOT NULL, Password VARCHAR(20) NOT NULL, ContactNumber VARCHAR(15) NOT NULL ); CREATE TAB...
<reponame>bogdanghita/public_bi_benchmark-master_project<gh_stars>10-100 CREATE TABLE "USCensus_3"( "ACCESS" smallint, "ACR" smallint, "ADJHSG" integer NOT NULL, "ADJINC" integer NOT NULL, "ADJINC1" integer NOT NULL, "AGEP" smallint NOT NULL, "AGS" smallint, "ANC1P" smallint NOT NULL, "ANC2P" smallint...
/* https://sqlserverfast.com/blog/hugo/2019/04/removing-multiple-patterns-from-a-string/ */ IF OBJECT_ID('Number', N'U') IS NULL BEGIN CREATE TABLE Number ( N INT CONSTRAINT Number_PK PRIMARY KEY CLUSTERED(N) ); WITH L0 AS(SELECT 1 AS C UNION ALL ...
/* Create 3 devices which belongs to 3 users */ INSERT INTO dev_info (sn_id, admin_id, password) VALUES(1, 1, "<PASSWORD>1<PASSWORD>111111111111111<PASSWORD>"); INSERT INTO dev_info (sn_id, admin_id, password) VALUES(2, 2, "<PASSWORD>2222<PASSWORD>"); INSERT INTO dev_info (sn_id, admin_id, password) VALUES(3, 3, "<PASS...
BEGIN EXECUTE IMMEDIATE 'DROP TABLE ' || 'DataTable'; EXCEPTION WHEN OTHERS THEN IF SQLCODE != -942 THEN RAISE; END IF; END; CREATE TABLE DataTable( id NUMBER GENERATED ALWAYS AS IDENTITY, col_number NUMBER UNIQUE, col_float FLOAT, col_binary_float BINARY_FLOAT, col_binary_double BI...
<gh_stars>1-10 -- populate collection INSERT INTO dataset_collection (id, name) VALUES (1, 'tpcds_postgres'); INSERT INTO dataset_collection (id, name) VALUES (2, 'tpcds_file'); INSERT INTO dataset_collection (id, name) VALUES (3, 'mixed'); INSERT INTO dataset_collection (id, name) VALUES (4, 'tpcds_base_files'); INSE...
CREATE PROCEDURE dbo.TPW_SERVICE_PUMP_PJOB ( @outSwitch_To_Mode NVARCHAR(8) OUTPUT ) AS /* SET NOCOUNT ON */ DECLARE @tReturn INT; DECLARE @tNow DATETIME; SET @tNow = GETDATE(); UPDATE dbo.TPW_PUMP_CONFIG SET DATE_VALUE = @tNow WHERE ELEMENT_NAME = N'PRIMARY_BEAT'; EXEC @tReturn = dbo.TP...
<gh_stars>1-10 -- Create the configurator group role insert into security_group (security_group_id, created_on_date, last_updated_date, description, group_name) values (11, timestamp 'now', timestamp 'now', 'Counselor security group', 'COUNSELOR'); insert into security_group_security_permission (security_permission_id...
ALTER TABLE ${ohdsiSchema}.source ADD (username varchar2(255)); ALTER TABLE ${ohdsiSchema}.source ADD (password varchar2(255));
CREATE TABLE aaHundred (a int PRIMARY KEY, b int); INSERT INTO aaHundred VALUES (1,1); INSERT INTO aaHundred VALUES (2,2); INSERT INTO aaHundred VALUES (3,3); INSERT INTO aaHundred VALUES (4,4); INSERT INTO aaHundred VALUES (5,5); INSERT INTO aaHundred VALUES (6,6); INSERT INTO aaHundred VALUES (7,7); INSERT INTO aaHun...
<filename>project/app/migrations/models/0_20210706004626_init.sql -- upgrade -- CREATE TABLE IF NOT EXISTS "genre" ( "id" SERIAL NOT NULL PRIMARY KEY, "name" VARCHAR(50) NOT NULL UNIQUE, "created_at" TIMESTAMPTZ NOT NULL, "updated_at" TIMESTAMPTZ NOT NULL ); CREATE TABLE IF NOT EXISTS "aerich" ( "id...
USE sql_store; SELECT * FROM customers WHERE address REGEXP 'TRAIL|AVENUE'
CREATE DATABASE many_to_many_relations; CREATE TABLE students( student_id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL ); CREATE TABLE exams ( exam_id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL ); CREATE TABLE students_exams ( student_id INT NOT NULL, exam_id INT NOT NULL, CONSTR...
<filename>db_newspeed_new.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 09, 2021 at 09:08 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2018 at 05:15 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- +micrate Up CREATE TABLE fb_tokens ( id BIGSERIAL PRIMARY KEY, token VARCHAR, user_id VARCHAR, scope_string VARCHAR, expires_at TIMESTAMP, created_at TIMESTAMP, updated_at TIMESTAMP ); CREATE INDEX fb_token_token_idx ON fb_tokens (token); -- +micrate Down DROP TABLE IF EXISTS fb_tokens;
BEGIN TRANSACTION; CREATE SEQUENCE corpus_state_id_seq; CREATE TABLE corpus_state ( id INTEGER PRIMARY KEY DEFAULT nextval('corpus_state_id_seq'), corpus_tag TEXT NOT NULL, state TEXT NOT NULL ); COPY corpus_state (corpus_tag, state) FROM STDIN; kbp2016 done edl2016 done \. CREATE VIEW evaluation_doc_que...
<filename>migrations/V2017_02_20_16_50_13__team-pattern-indexes.sql -- -*- sql-dialect: postgres; -*- create index idx_team_patterns_for_team on clippingsbot.team_patterns (team_id); create index idx_team_patterns_for_channel on clippingsbot.team_patterns (team_id, channel_id, created desc);
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE IF NOT EXISTS documents( id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), name VARCHAR(255), user_id UUID, data text ); CREATE TABLE IF NOT EXISTS tags( id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), name VARCHAR(255), document_id UU...
-- CreateTable CREATE TABLE "Post" ( "id" SERIAL, "content" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "userId" INTEGER, PRIMARY KEY ("id") ); -- AddForeignKey ALTER TABLE "Post" ADD FOREIGN KEY("userId")REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-- IFS-5816 Add terms and conditions section and question to existing, unopened, competitions -- New terms and conditions section INSERT INTO section (display_in_assessment_application_summary, name, priority, competition_id, question_group, section_type, description) SELECT false ...
CREATE TABLE IF NOT EXISTS USERS( ID UUID PRIMARY KEY, NAME VARCHAR(255), EMAIL VARCHAR(255) );
delimiter // set names utf8 // drop procedure if exists get_event_dependencies // create procedure get_event_dependencies ( IN p_event_schema VARCHAR(64) CHARSET utf8 , IN p_event_name VARCHAR(64) CHARSET utf8 ) DETERMINISTIC READS SQL DATA begin declare v_event_definition longtext charse...
-- 24.03.2016 16:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,Description,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEna...
<filename>db/seeds.sql -- ===== Seed departments ===== INSERT INTO departments (name) VALUES ('sales'), ('engineering'), ('legal'), ('finance'); -- ===== Seed Roles ===== INSERT INTO role (title, salary, department_id) VALUES ('junior salesperson', 50000, 1), ('senior salesperson', 60000, 1), ('manager of sales', 8000...
<filename>models/marts/core/fct_orders.sql with orders as ( select * from {{ ref('stg_orders') }} ), customers as ( select * from {{ ref('stg_customers') }} ), payments as ( select * from {{ ref('stg_payments') }} ), final as ( select customers.customer_id, orders.order_id, p...
<filename>src/main/resources/sql/schema.sql drop table if exists user; create table user ( id varchar(32) primary key, name varchar(10), age int );
-- database: presto; groups: base_sql,quarantine; tables: lineitem; queryType: SELECT show partitions from lineitem
ALTER USER [MyUser] WITH DEFAULT_SCHEMA = [MySchema], LOGIN = [MyOtherLogin_Change] GO ALTER USER [MyEnabledUser] WITH DEFAULT_SCHEMA = [dbo] GO ALTER LOGIN [MyEnabledLogin] DISABLE GO ALTER LOGIN [MyDisabledLogin] ENABLE GO
CREATE TABLE "operationrecord" ( "tkey" BIGINT NOT NULL, "version" INTEGER NOT NULL, "transactionid" VARCHAR(255) NOT NULL, "executiondate" BIGINT NOT NULL, "status" VARCHAR(255) NOT NULL, "technicalproductoperation_tkey" BIGINT NOT NULL, "subscription_tkey" BIGINT NOT NULL, "user_tkey"...
CREATE TABLE IF NOT EXISTS `__PREFIX__message` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `send_from` varchar(30) NOT NULL DEFAULT '0' COMMENT '发件人', `send_to` varchar(30) NOT NULL DEFAULT '0' COMMENT '收件人', `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `subject` varchar(80) DEFAUL...
create table sms_flash_promotion ( id bigint auto_increment primary key, title varchar(200) null, start_date date null comment '开始日期', end_date date null comment '结束日期', status int(1) null comment '上下线状态', create_time datetime null commen...
begin; create table exotic( id bigint primary key, tags text[] not null ); insert into exotic(id, tags) values (1, array['a', 'b']); select jsonb_pretty( graphql.resolve($$ { exoticCollection { edges { node { ...
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (https://h2database.com/html/license.html). -- Initial Developer: H2 Group -- SELECT TYPE_NAME, PRECISION, PREFIX, SUFFIX, PARAMS, MINIMUM_SCALE, MAXIMUM_SCALE FROM INFORMATION_SCHEMA.TYPE_INFO WHERE TYPE_NAME = 'TIMESTAMP WIT...
-- Write a PL/SQL program to check -- whether a given number is an Armstrong number or not. The number should be taken as an input from the user. declare n number; s number:=0; r number; len number; m number; begin n := &n; m := n; len := length(to_char(n)); while n>0 loop r := mod(n , 10); s := s + ...
CREATE FUNCTION saleStats (@days INT) returns @stats TABLE (minOrderAmount MONEY, maxOrderAmount MONEY, avgOrderAmount MONEY, sumOrderAmount MONEY, totalSoldQuantity INT, servedCustomers INT, mostPopularProduct VARCHAR(30)) AS BEGIN DECLARE @tempOrders TABLE (id INT, pub_id INT) DECLARE @tempDetails TABLE (product_nam...
DROP TABLE IF EXISTS `user`; CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `emp_id` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `address` TEXT NOT NULL, `birth_date` DATE NOT NULL, `master_department_id...
<reponame>Aldirezkir/10119273_Kepegawaian<filename>10119273_kepegawaian.sql -- MariaDB dump 10.17 Distrib 10.4.11-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: 10119273_kepegawaian -- ------------------------------------------------------ -- Server version 10.4.11-MariaDB /*!40101 SET @OLD_CHARACTER_S...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: crawl-data-amazon -- ------------------------------------------------------ -- Server version 5.5.5-10.1.13-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
<reponame>leftstick/java-di-practice<filename>src/main/resources/db/V1__BASE_VERSION.sql<gh_stars>0 CREATE TABLE `user` ( `id` int(11) NOT NULL, `email` varchar(50) NOT NULL DEFAULT '' COMMENT 'email', `mobile` varchar(30) DEFAULT '' COMMENT 'mobile', `name` varchar(50) DEFAULT '' COMMENT 'name', `position` v...
<filename>rekam (1).sql -- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2018 at 12:12 AM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100411 Source Host : localhost:3306 Source Schema : allowance_cell Target Server Type : MySQL Target Server Version : 100411 File Encoding : 65001 Date: 10/0...
INSERT INTO product (id, name, brand, color, price) VALUES (1, 'iphone 11', 'apple', 'white', 20); INSERT INTO product (id, name, brand, color, price) VALUES (2, 'iphone 12', 'apple', 'white', 30); INSERT INTO product (id, name, brand, color, price) VALUES (3, 'iphone 12 pro', 'apple', 'black', 22); INSERT INTO produc...
CREATE TABLE `sap_position_management_external_name_translation_text_nav_data` ( `Code` varchar(20) NOT NULL, `Locale` varchar(20) DEFAULT NULL, `Value` varchar(40) DEFAULT NULL, PRIMARY KEY (`Code`), CONSTRAINT `SAPPositionManagementExternalNameTranslationTextNavData_fk` FOREIG...
<reponame>rikusarlin/db-variations INSERT INTO PERSON (ID, FIRSTNAME, LASTNAME) VALUES (1, 'Donald', 'Duck'); INSERT INTO PERSON (ID, FIRSTNAME, LASTNAME) VALUES (2, 'Huey', 'Duck'); INSERT INTO PERSON (ID, FIRSTNAME, LASTNAME) VALUES (3, 'Dewey', 'Duck'); INSERT INTO PERSON (ID, FIRSTNAME, LASTNAME) VALUES (4, 'Louie'...
select DISTINCT afe.ae_ref as ae_ref, o.name as ae_name, o.slots_balance, o.slots_balance+100 as amountAdjUp,o.slots_balance-100 as amountAdjDown from organisation o, auth_for_ae afe, person aedm_user, organisation_business_role_map obrm where o.name is not null and afe.organisation_id = o.id and obrm.organisation_id =...
CREATE DATABASE IF NOT EXISTS `osmpoll` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `osmpoll`; -- MySQL dump 10.13 Distrib 5.5.47, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: osmpoll -- ------------------------------------------------------ -- Server version 5.5.47-0+deb8u1 /*!40101 SET @OLD...
INSERT INTO `customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `items` (`item_name`, item_price`) VALUES ('hakakakakak', 100d);
CREATE COLUMN TABLE "POS"."REDALLI_POINTS" ("STORE" SMALLINT CS_INT NOT NULL , "DATE" NVARCHAR(8) NOT NULL , "POS_TR" INTEGER CS_INT NOT NULL , "CUSTOMER" INTEGER CS_INT NOT NULL , "POS_ID" INTEGER CS_INT NOT NULL , "SKU" INTEGER CS_INT NOT NULL , "AMOUNT" INTEGER CS_INT, "UNIT" NVARCHAR(3) NOT NULL , "GROSS_USD" INTEG...
<filename>app/config/sql/structure/20090520-2-dk-projectstatus.sql ALTER TABLE `projects` CHANGE `status` `status` ENUM( 'NEW', 'PENDING', 'APPROVED', 'INACTIVE' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'NEW';
<filename>prestashop/install/upgrade/sql/1.4.7.0.sql SET NAMES 'utf8'; /* PHP:category_product_index_unique(); */; CREATE TABLE IF NOT EXISTS `PREFIX_order_tax` ( `id_order` int(10) NOT NULL, `tax_name` varchar(40) NOT NULL, `tax_rate` decimal(6,3) NOT NULL, `amount` decimal(20,6) NOT NULL ) ENGINE=ENGINE_TYP...
ALTER TABLE sites_granted DROP KEY FK_sites_granted_site_id_plugin_id; ALTER TABLE sites_granted CHANGE application_id site_id_temp int(11) NOT NULL; ALTER TABLE sites_granted CHANGE site_id application_id int(11) NOT NULL; ALTER TABLE sites_granted CHANGE site_id_temp site_id int(11) NOT NULL; ALTER TABLE site_applica...
<reponame>yafraorg/yafra-database /**************************************************************/ /* */ /* yafra.org */ /* */ /* system messages definition ...
<reponame>AxelMarquez/Ed-Fi-ODS -- 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. ------------------...
<reponame>liucunzhou/dress<filename>update/dr_category_leave.sql /* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : drseven Target Server Type : MySQL Target Server Version...
DELETE FROM public.plv8_modules WHERE module = 'util/searchFilter'; INSERT INTO public.plv8_modules (module, autoload, source) VALUES ('util/searchFilter', FALSE, $FUNCTION$'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = searchFilter; var kOpAnd = '&'; var kOpOr = '|'; v...
ALTER TABLE master_code ADD COLUMN external_id VARCHAR(255); CREATE INDEX IDX_mc_external_id ON master_code (external_id);
<reponame>tharangar/k8s-webserver -- POCOR-3931 DROP TABLE `system_authentications`; DROP TABLE `authentication_types`; DROP TABLE `idp_google`; DROP TABLE `idp_oauth`; DROP TABLE `idp_saml`; ALTER TABLE `z_3931_authentication_type_attributes` RENAME TO `authentication_type_attributes` ; -- config_items DELETE F...
<filename>DMS5/UpdateCartParameters.sql /****** Object: StoredProcedure [dbo].[UpdateCartParameters] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure dbo.UpdateCartParameters /**************************************************** ** ** Desc: ** Changes cart parameters for given req...
DROP KEYSPACE IF EXISTS killr_video; CREATE KEYSPACE killr_video WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; USE killr_video; CREATE TABLE users_by_email ( email TEXT, password TEXT, user_id UUID, PRIMARY KEY ((email)) ); CREATE TABLE users ( user_id UUID, email TEXT, ...
INSERT into Product (id, name, description, price) VALUES ('1', 'Chair', 'A metal frame chair, with oak seat', 59.95); INSERT into Product (id, name, description, price) VALUES ('2', 'Dinner Table', 'Sturdy oak Table', 200); INSERT into Product (id, name, description, price) VALUES ('3', 'Coffee Table', 'An oak coffee ...
<filename>standalone-metastore/metastore-server/src/main/sql/derby/upgrade-2.1.0-to-2.2.0.derby.sql -- Upgrade MetaStore schema from 2.1.0 to 2.2.0 --RUN '037-HIVE-14496.derby.sql'; -- Step 1: Add the column allowing null ALTER TABLE "APP"."TBLS" ADD "IS_REWRITE_ENABLED" CHAR(1); -- Step 2: Replace the null with defa...
<filename>tablasN.sql /* SQLyog Ultimate v11.33 (64 bit) MySQL - 10.1.31-MariaDB : Database - kerrodal ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!4...
#Date: 2018-03-28 #Author:<NAME> #This is a capture of some ad hoc changes for ENV Refreshes that are not within the main DataDeidentification script. -- ------------------------------------------------- -- UPLOADS -- ------------------------------------------------- update synapse.upload_file_log set viewed = 1 where...
INSERT INTO staff_info(employee_id, name, type, join_date, designation) VALUES('0001HST', '<NAME>', 'HOSTEL', DATE '2015-01-01', 'SUPERVISOR'); INSERT INTO staff_info(employee_id, name, type, join_date, designation) VALUES('0001NTS', '<NAME>', 'NON-TEACHING STAFF', DATE '2015-01-01', 'LAB ASSISTANT'); INSERT INTO sta...
use mtp2020 go UPDATE mtpuser.mixden_2040 set den = 0, per_hh=0, per_emp=0, cate=0 UPDATE mtpuser.mixden_2040 set den = (hh_tot_p+emptot)/160, per_hh=hh_tot_p/(hh_tot_p+emptot), per_emp=emptot/(hh_tot_p+emptot) UPDATE mtpuser.mixden_2040 SET CATE = 1 FROM mtpuser.mixden_2040 WHERE PER_HH >= 0.8 and DEN <=...
<reponame>salgadoFiorella/SIGPE /* -- Query: SELECT * FROM sigpe_test.plan_campus LIMIT 0, 1000 -- Date: 2019-10-04 20:59 */ INSERT INTO `plan_campus` (`Id`,`plan_cd`,`campus_cd`,`EstadoPlan`,`planId`,`planAct`) VALUES (1,'8010806002019-10-03-17-36-56',6,'Presencial',1,'Y'); INSERT INTO `plan_campus` (`Id`,`plan_cd`,`...
<gh_stars>0 drop table user if exists; create table user ( id BIGINT generated by DEFAULT as identity, username VARCHAR(40), name VARCHAR(20), age int(3), balance DECIMAL(10,2), PRIMARY key(id) );
/* Navicat Premium Data Transfer Source Server : local95 Source Server Type : MySQL Source Server Version : 50730 Source Host : 192.168.1.95:3306 Source Schema : httpquartz Target Server Type : MySQL Target Server Version : 50730 File Encoding : 65001 Date: 17/07/202...
<reponame>NordiCelt/TraXdotNet CREATE PROCEDURE [dbo].[BugNet_ProjectIssueTypes_UpdateIssueType] @ProjectId int, @IssueTypeId int, @IssueTypeName NVARCHAR(50), @IssueTypeImageUrl NVARCHAR(255), @SortOrder int AS DECLARE @OldSortOrder int DECLARE @OldIssueTypeId int SELECT @OldSortOrder = SortOrder F...
<filename>backend/de.metas.acct.base/src/main/sql/postgresql/system/43-de.metas.acct/5596831_sys_gh11457_bpartner_debtorId_creditorId_update_logic.sql -- 2021-08-24T09:59:16.415Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ValueMax='99', ValueMin='0',Updated=TO_TIMESTAMP('2021...
<reponame>tolorukooba/hedera-mirror-node ------------------- -- Add transaction block index ------------------- alter table if exists transaction add column if not exists index integer null;
<gh_stars>0 CREATE TABLE SYS_USER ( ID VARCHAR2(32) NOT NULL, USER_NAME VARCHAR2(32) NOT NULL, PASSWORD VARCHAR2(32) NOT NULL, USER_NUMBER VARCHAR2(32) NOT NULL, DISPLAY_NAME VARCHAR2(100) NOT NULL, EMAIL VARCHAR2(100), MOBILE_PHONE_NUMBER VARCHAR2(20), ADDRESS VARCHAR2(1000), DEPARTMENT_ID VARCHAR2(32), STAT...
version https://git-lfs.github.com/spec/v1 oid sha256:a08db4115a31cdd54e7fac76f052cfa0b76ab10d842e739f4e6554eede986a30 size 388
<filename>oci-test/tests/oci_identity_customer_secret_key/test-not-found-query.sql select id, user_id, display_name, lifecycle_state, time_created from oci.oci_identity_customer_secret_key where display_name = '{{ output.display_name.value }}::dummy';