sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Jul 2018 pada 03.56 -- Versi server: 10.1.33-MariaDB -- Versi PHP: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<filename>db/db/3table/upright/CIF_CLIENT_STATUS.sql drop table if exists CIF_CLIENT_STATUS; /*==============================================================*/ /* Table: CIF_CLIENT_STATUS */ /*==============================================================*/ create table CIF_CLI...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS database_settings( version INTEGER NOT NULL, date DATETIME NOT NULL); ALTER TABLE users RENAME TO temp_users; CREATE TABLE users( serverID TEXT, userId TEXT, xp INTEGER DEFAULT 0, warnings INTEGER DEFAULT 0, groups TEXT DEFAULT "...
<reponame>zflows/wolf-notification SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [notif].[template_recipient]( [tr_id] [bigint] IDENTITY(1,1) NOT NULL, [template_id] [uniqueidentifier] NOT NULL, [recipient_id] [bigint] NOT NULL, [type_code] [varchar](25) NOT NULL, CONSTRAINT [PK_template_recipien...
USE employee; INSERT INTO department (departmentName, departmentLoc) VALUES ('Administration', DEFAULT), ('IT', DEFAULT);
<filename>src/main/resources/de/aservo/ldap/adapter/db/drop-schema.sql<gh_stars>0 drop index if exists _Group_Membership_Transitive_parent_group_id; drop index if exists _Group_Membership_Transitive_member_group_id; drop index if exists _User_Membership_Transitive_parent_group_id; drop index if exists _User_Membership_...
insert into `base_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `crt_time`, `upd_time`, `upd_name`, `crt_name`, `remark`) values('32','多个链名称','protocol_type_list','1','2019-11-08 09:37:38','2019-11-08 09:37:38','Tian','Tian',NULL); insert into `base_dict_data` (`id`, `dict_id`, `sort`, `dict_label`, `dict_...
IF OBJECT_ID('finance.revenue_selector_view') IS NOT NULL DROP VIEW finance.revenue_selector_view; GO CREATE VIEW finance.revenue_selector_view AS SELECT finance.account_scrud_view.account_id AS revenue_id, finance.account_scrud_view.account_name AS revenue_name FROM finance.account_scrud_view W...
<gh_stars>0 -- Accept the application referenced by arg_application_id -- A new team will always be created -- Students 1 and 2 will be upserted (they might have been accpeted before, but deleted by admin) -- If the application does not have a team name to create the team with, use arg_default_name DROP FUNCTION IF EXI...
create or replace function signup(name text, email text, password text) returns session as $$ declare usr record; result record; begin EXECUTE 'SET search_path TO ' || quote_ident(settings.get('auth.data-schema')) || ', public'; insert into "user" as u (name, email, password) values ($1, $2, $3) ...
-- migrate:up INSERT INTO dentists_branches (dentist_id, branch_id) VALUES (1, 36), (2, 30), (3, 1), (5, 1), (6, 1), (7, 1), (10, 1), (11, 1), (12, 1), (13, 1), (15, 1), (16, 1), (17, 1), (18, 1), (21, 1), (22, 1), (23, 1), (25, 1), (26, 1), (27, 1), (28, 1), (30, 1), (33, 1), (36, 1), (38, 1), (41, 1), (43, 1), (44, ...
<filename>vaksinasi.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Waktu pembuatan: 25 Bulan Mei 2022 pada 15.17 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
<gh_stars>0 -- !preview conn=DBI::dbConnect(RSQLite::SQLite()) /* crear tabla de hojas */ CREATE TABLE IF NOT EXISTS hojas ( id INTEGER PRIMARY KEY UNIQUE, fecha_hojas DATETIME NOT NULL, comentarios TEXT ) WITHOUT ROWID;
SELECT '--- 06 Logging and backups ---' AS title ; -- In any major application you will need to keep a log of client actions. -- From both the perspective of the user and relation object we want a way to -- determine what changes have happened and when. In most applications this is -- handled at the code level even if...
SELECT AVG(end_date - start_date) FROM reservations
/* SQLyog Ultimate v12.4.0 (32 bit) MySQL - 10.1.16-MariaDB : Database - outlier ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_...
<reponame>Kingsworth/CICS<filename>tools/db/create.sql CREATE TABLE constituencies ( id UUID PRIMARY KEY, name TEXT NOT NULL UNIQUE, code TEXT NOT NULL UNIQUE ); CREATE TABLE wards ( id UUID PRIMARY KEY NOT NULL, constituency_id UUID REFERENCES constituencies (id), name TEXT ...
<filename>mysql/autograder/1_interpret.sql SELECT * FROM result;
<filename>assignments/ass1/submission/18307130130/4.sql SELECT name FROM employee WHERE employee.age>=25 AND age<=30 ORDER BY id;
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Jul 30, 2016 at 07:59 PM -- Server version: 10.1.9-MariaDB-log -- PHP Version: 5.6.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
Insert into tenant values(nextval('seq_tenant'),'default','default',null,'','','CITY',1,now(),1,now());
DROP TABLE IF EXISTS trx_history; DROP EXTENSION IF EXISTS "uuid-ossp";
-- $ID$ -- TPC-H/TPC-R Shipping Modes and Order Priority Query (Q12) -- Functional Query Definition -- Approved February 1998 select l_shipmode from orders, lineitem where o_orderkey = l_orderkey and l_shipmode = 'FOB'
<gh_stars>0 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table student ( id integer not null, name varchar(255), age integer, constraint pk_student ...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50516 Source Host : localhost:3306 Source Database : glonass Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2018-10-30 15:17:01 */ SET FOREIGN_KEY_CHECKS=0...
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: criminal -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
<filename>internal/get_engine_version.sql /* 'Stolen' from S4. */ IF OBJECT_ID('dda.get_engine_version','FN') IS NOT NULL DROP FUNCTION dda.get_engine_version; GO CREATE FUNCTION dda.get_engine_version() RETURNS decimal(4,2) AS -- {copyright} BEGIN DECLARE @output decimal(4,2); DECLARE @major sysname...
<gh_stars>0 -- AlterTable ALTER TABLE "products" ALTER COLUMN "likes" SET DEFAULT 0;
<reponame>linowsmr/carikos -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 1172.16.31.10 -- Generation Time: 20 Mar 2017 pada 08.47 -- Versi Server: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
USE pubs; Go CREATE DATABASE Vendors Go USE Vendors; CREATE TABLE Vendor ( [ID] char (5) NOT NULL , [NAME] VARCHAR(20) NOT NULL , [ADDRESS] VARCHAR (50) NOT NULL , [PHONE] VARCHAR (20) NOT NULL , [PROFILE] VARCHAR (20) NOT NULL , [WEB] VARCHAR (20) NOT NULL , [EMAIL] VARCHAR (20) NOT NULL , [SKILL] VA...
<reponame>kapmahc/h2o DROP TABLE forum_comments; DROP TABLE forum_articles_tags; DROP TABLE forum_tags; DROP TABLE forum_articles;
<gh_stars>1-10 with param as ( select to_date('19.05.2019 06:00:00', 'DD.MM.YYYY HH24:MI:SS') begin, to_date('19.05.2019 14:00:00', 'DD.MM.YYYY HH24:MI:SS') end from dual ) select s.begin_interval_time t, -- en.event_id, en.wait_class, en.event_name, (se2.total_waits-se1.total_waits) total_waits, ...
delete from access where owner != 'admin'; delete from access where username != 'ami'; delete from ami where username != 'admin'; delete from app where owner != 'admin'; delete from aws where username != 'admin'; delete from appversion where username != 'admin'; delete from aws where username != 'admin'; delete from cl...
<gh_stars>10-100 -- Consider P1(a, c) and P2(b, d) to be two points on a 2D plane where (a, b) are the respective minimum and maximum values of Northern Latitude (LAT_N) and -- (c, d) are the respective minimum and maximum values of Western Longitude (LONG_W) in STATION. -- Query the Euclidean Distance between points ...
define core_dir=core/ prompt prompt &h2.Granting access to PIT to &REMOTE_USER. --prompt &h3.Clean up schema &REMOTE_USER. --@&core_dir.clean_up_client.sql prompt &h3.Grant rights and create synonyms -- Types @tools/grant_access.sql execute char_table @tools/grant_access.sql execute clob_table @tools/gra...
<reponame>Shuttl-Tech/antlr_psql -- file:tstypes.sql ln:133 expect:true select to_tsvector('simple', 'q x y') @@ 'q <-> (x | y <-> z)' AS "true"
DROP DATABASE IF EXISTS lincs; CREATE DATABASE lincs;
ALTER TABLE db_version CHANGE COLUMN required_2008_12_22_11_mangos_player_classlevelstats required_2008_12_22_12_mangos_player_levelstats bit; DELETE FROM `player_levelstats`; INSERT INTO `player_levelstats` VALUES (1,1,1,23,20,22,20,20), (1,1,2,24,21,23,20,20), (1,1,3,26,22,24,20,21), (1,1,4,27,22,26,20,21), (1,1,5,2...
CREATE TABLE app_hidden.repos( uuid uuid default uuid_generate_v4() primary key, owner_vcs_uuid uuid references owner_vcs on delete cascade not null, service git_service not null default 'github'::git_service, service_id citext unique CHECK (LENGT...
<reponame>flammenderdrache/tiersortierer -- -- PostgreSQL database dump -- -- Dumped from database version 13.2 -- Dumped by pg_dump version 13.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_...
INSERT INTO A2_BIOENTITYTYPE (NAME, IDENTIFIERPROPERTYID, NAMEPROPERTYID) VALUES ('ensprotein', (SELECT BEP.BIOENTITYPROPERTYID FROM A2_BIOENTITYPROPERTY BEP WHERE BEP.NAME='ensprotein'), (SELECT BEP.BIOENTITYPROPERTYID FROM A2_BIOENTITYPROPERTY BEP WHERE BEP.NAME='ensprotein'));
<filename>database/MAJ_cetcal/00000000[deprecated]20210526___insert_biodata_dept24.sql INSERT INTO cetcal_biodata (dept, denomination, adr_certification, id_certification, source) VALUES (24,"<NAME> <NAME>","24800 Saint Jory de Chalais","16496C10-2448-4438-8242-934191A7F400", "ecocert"); INSERT INTO cetcal_biodata (dep...
<reponame>joshualucas84/jasper-soft-server<gh_stars>1-10 -- -- upgrade mysql 2.1.0 -> 3.0.0 -- alter table JIInputControl modify query_value_column varchar(200); alter table JIInputControlQueryColumn modify query_column varchar(200); alter table JIJdbcDatasource modify column connectionUrl text; ...
<gh_stars>1-10 --- gp_distributed_xacts table --- \echo -- start_ignore select * from gp_distributed_xacts; \echo -- end_ignore
-- -- Table structure for table 'jforum_spam' -- DROP TABLE IF EXISTS jforum_spam; CREATE TABLE jforum_spam ( pattern VARCHAR(100) NOT NULL ) ENGINE=InnoDB; -- more characters for topic title ALTER TABLE jforum_topics MODIFY topic_title VARCHAR(120); ALTER TABLE jforum_posts_text MODIFY post_subject VARCHAR...
<filename>openGaussBase/testcase/KEYWORDS/Lc_Ctype/Opengauss_Function_Keyword_Lc_Ctype_Case0021.sql -- @testpoint: opengauss关键字Lc_Ctype(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists Lc_Ctype; create function Lc_Ctype(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双...
-------------------------------------------------------------------------- -- Up -------------------------------------------------------------------------- CREATE TRIGGER admin_updated_at AFTER UPDATE ON Administrators BEGIN UPDATE Administrators SET updated_at = DATETIME('now', 'localtime') WHERE admi...
<reponame>MM-Andrade/LES INSERT INTO "tb_slaticket"("id", "status", "percentilatendimento", "dataviolacao", "dataprevista", "fk_ticket", "motivoviolacao") VALUES (1, 'Ok', NULL, '0001-01-01 00:00:00', '2018-11-27 13:30:56', 1, NULL); INSERT INTO "tb_slaticket"("id", "status", "percentilatendimento", "dataviolacao", "da...
<filename>ArcheAge/bin/Debug/sql/levels.sql /* Navicat MySQL Data Transfer Source Server : AA Source Server Version : 80011 Source Host : localhost:3306 Source Database : archeage Target Server Type : MYSQL Target Server Version : 80011 File Encoding : 65001 Date: 2018-09-29 02:29:...
<filename>querys_postgresql/creacion_questions.sql create table tbl_data_questions_cab (data_id INTEGER, cat_cor_id integer, data_file_name varchar(200), data_rows integer, est_registro integer, usu_registro varchar(100), fec_registro timestamp, constraint tbl_data_questions_cab_pk primary key (data_id)); create table...
<filename>FSNEP.SQL/Schema Objects/Schemas/dbo/Tables/Keys/FK_ProjectXFinanceAccount_Projects.fkey.sql ALTER TABLE [dbo].[ProjectXFinanceAccount] ADD CONSTRAINT [FK_ProjectXFinanceAccount_Projects] FOREIGN KEY ([ProjectID]) REFERENCES [dbo].[Projects] ([ID]) ON DELETE NO ACTION ON UPDATE NO ACTION;
--01. DDL CREATE TABLE Users( Id INT PRIMARY KEY IDENTITY, Username VARCHAR(30) NOT NULL, [Password] VARCHAR(30) NOT NULL, Email VARCHAR(50) NOT NULL ) CREATE TABLE Repositories( Id INT PRIMARY KEY IDENTITY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE RepositoriesContributors( RepositoryId INT REFERENCES Reposi...
<filename>src/test/resources/select1.test_81.sql<gh_stars>100-1000 -- select1.test -- -- execsql {SELECT A.f1, B.f1 FROM test1 as A, test1 as B -- ORDER BY A.f1, B.f1} SELECT A.f1, B.f1 FROM test1 as A, test1 as B ORDER BY A.f1, B.f1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOR...
<gh_stars>1-10 SELECT "id", "document", "description", "amount"::float FROM invoices WHERE id = $1;
<reponame>bgard6977/sqorm select * from ( select ROW_NUMBER() over (order by [name]) as rownum, c.* from customer c ) as rs where rs.rownum >= @PageNumber * @PageSize and rs.rownum < (@PageNumber+1) * @PageSize
/* Navicat Premium Data Transfer Source Server : 云数据库 Source Server Type : MySQL Source Server Version : 80016 Source Host : rm-bp1cp68o8t1gq604p5o.mysql.rds.aliyuncs.com:3306 Source Schema : sparksys_authorization Target Server Type : MySQL Target Server Version : 80016 File ...
CREATE OR REPLACE VIEW VIEW_JC_NCMTABELABASE_AM AS SELECT * FROM VIEW_JC_TABELABASE WHERE UFDESTINO = 'AM' AND CODNCMEX IN ( '70099200.', '85181090.', '87116000.', '87116000.1', '87119000.', '90191000.1' );
<reponame>punteroo/DiscordTF2Mover -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 12, 2020 at 07:47 AM -- Server version: 10.3.25-MariaDB-0ubuntu0.20.04.1 -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; ST...
-- 1. Elimine la tabla (drop table) si existe (if exists): DROP TABLE IF EXISTS clientes; -- 2. Cree la tabla con los siguientes campos: apellido (cadena de 30), nombre (cadena de 20), -- domicilio (cadena de 30) y telefono (cadena de 11): CREATE TABLE clientes ( documento VARCHAR(8) PRIMARY KEY, apellido VARC...
-- MySQL dump 10.13 Distrib 5.1.54, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: sisventi -- ------------------------------------------------------ -- Server version 5.1.54-1ubuntu4 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
CREATE SEQUENCE SEQ_IACUC_PROT_STUD_GRP_LOC_ID INCREMENT BY 1 START WITH 1 NOCACHE /
-- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- Unless requi...
<gh_stars>0 select a.clave, a.nombre, a.fecha_compra, a.vida_util, a.costo_de_compra, a.fecha_mantenimiento, a.fecha_depreciacion, d.id_anio, (select codigo from activosfijos.sub_grupo_activo_fijo where id=a.id_sub_grupo_activo_fijo)as codigo_sub_grupo, (select nombre from activosfijos.sub_g...
create table tb_course( username varchar(20) NOT NULL, password varchar(20), openid varchar(20), type int, PRIMARY KEY(username), UNIQUE KEY(username, password, openid) )
<reponame>PNNL-Comp-Mass-Spec/PgSQL-View-Creator-Helper<filename>Data/Manager_Control_views_updated.sql SET search_path TO public, sw, cap, dpkg, mc, ont; SHOW search_path; -- PostgreSQL stores views as Parse Trees, meaning any whitespace that is present in the CREATE VIEW statements will be lost -- -- The PgSQL ...
DROP VIEW IF EXISTS view_daftar_penerimaan_satpolpp; CREATE VIEW view_daftar_penerimaan_satpolpp AS SELECT * FROM view_daftar_penerimaan_kabupaten WHERE 1 = 1 AND id_skpd = 25; GRANT ALL PRIVILEGES ON view_daftar_penerimaan_satpolpp, sub_skpd TO lap_satpolpp; REVOKE INSERT, UPDATE, DELETE ON view_daftar_penerimaa...
-- @testpoint: path类型,使用[(x1,y1),...,(xn,yn)]方式插入较大坐标值 drop table if exists test_path04; create table test_path04 (name path); insert into test_path04 values (path '[(99999999999999999999999999999,99999999999999999999999999999999),(99999999999999999999999999999,99999999999999999999999999999999),(9999999999999999999999...
-- name: pg-create-comments-table# create table comments ( commentid serial not null primary key, blogid integer not null references blogs(blogid), author varchar(255) not null, content text not null )
CREATE INDEX ppy_pcs_id_idx ON processes_properties (pcs_id); CREATE INDEX ppy_name_idx ON processes_properties (name); CREATE INDEX ppy_pan_id_name_idx ON processes_properties (pcs_id, name);
CREATE TABLE [dbo].[sqlwatch_meta_memory_clerk] ( [sql_instance] varchar(32) not null constraint df_sqlwatch_meta_memory_clerk_sql_instance default (@@SERVERNAME), [sqlwatch_mem_clerk_id] smallint identity(1,1), [clerk_name] nvarchar(255) not null, constraint pk_sqlwatch_meta_memory_clerk primary key clustered ( ...
<gh_stars>0 CREATE TABLE tocconfig ( kittyDebit int NOT NULL, annualTocCost int NOT NULL, quarterlyTocCost int NOT NULL, quarterlyNumPayouts int NOT NULL, regularBuyInCost int NOT NULL, regularRebuyCost int NOT NULL, regularRebuyTocDebit int NOT NULL ); INSERT I...
ALTER TABLE transactions DROP COLUMN status;
DROP TABLE persons IF EXISTS; CREATE TABLE persons(id SERIAL, first_name VARCHAR(255), last_name VARCHAR(255));
Create PROCEDURE [dbo].[uspApplicationSelectByCandidateId] ( @CandidateId int, @OnlyRejection bit ) AS BEGIN SET NOCOUNT ON SELECT [Application].ApplicationId,[APPLICATION].Candi...
<filename>app/migrations/schema.sql<gh_stars>10-100 CREATE TABLE `users` ( `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(64) NOT NULL DEFAULT '', `password` varchar(64) NOT NULL DEFAULT '', `status` tinyint(4) DEFAULT '0', `updated_at` int(11) DEFAULT NULL, `created_at` int(11) NOT NU...
<reponame>tizian/Cendric2<gh_stars>100-1000 INSERT INTO text(text_id, text_type, english, german, swiss_german) values ('DL_Vincent_NotTalked', 'dl_npc_vincent2', 'Hey you, psst! You look like you could use some gold. Interested in a ... special job?', 'Hey du, psst! Du siehst aus, als könntest du etwas Gold gut gebrau...
<reponame>Z3r4t05/FPT select s.SupplierID, s.SupplierName, count(p.ProductID) [NumberOfProduct] from Products p join Suppliers s on p.SupplierID = s.SupplierID group by s.SupplierID, s.SupplierName having count(p.ProductID) >= all (select count(p.ProductID) from Products p join Suppliers s on p.SupplierID = s.Supp...
-- 2019-10-21T19:45:43.924Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='<NAME>', PrintName='<NAME>',Updated=TO_TIMESTAMP('2019-10-21 21:45:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577082 AND AD_Language='de_CH' ; -- 2019-10-21T19:45:43.961Z --...
--******************************************************************************************************** -- locality reference point creation using GNAF and PSMA Boundaries -- -- author: <NAME> -- email: <EMAIL> -- twitter: @EdHaverkamp -- --***************************************************************************...
START TRANSACTION; INSERT INTO `fields` VALUES (NULL, 'btnAddCalendar', 'backend', 'Button / + Add calendar', 'script', '2015-11-01 08:51:57'); SET @id := (SELECT LAST_INSERT_ID()); INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', '+ Add calendar', 'script'); INSERT INTO `fields` VALUE...
CREATE SCHEMA IF NOT EXISTS %schemaName%; CREATE TABLE %schemaName%.OUTBOX_SCHEMA_VERSION( ID INT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1), VERSION VARCHAR(255) NOT NULL, CREATED TIMESTAMP NOT NULL, PRIMARY KEY (ID) ); INSERT INTO %schemaName%.OUTBOX_SCHEMA_V...
-- class insert into acl_class (id, class) values (10, 'com.acuity.va.security.acl.domain.DrugProgramme'); insert into acl_class (id, class) values (11, 'com.acuity.va.security.acl.domain.ClinicalStudy'); insert into acl_class (id, class) values (12, 'com.acuity.va.security.acl.domain.Visualisation'); -- object - exte...
CREATE OR REPLACE FUNCTION __temp_set_cpu_profiles_permissions () RETURNS VOID AS $PROCEDURE$ DECLARE -- role ids declarations v_CPU_PROFILE_CREATOR_ID UUID; v_CPU_PROFILE_OPERATOR_ID UUID; v_SUPER_USER_ROLE_ID UUID; v_POWER_USER_ROLE_ID UUID; v_CLUSTER_ADMIN_ROLE_ID UUID; v_DATA_CENTER_AD...
<gh_stars>1-10 ALTER TABLE imageContent ADD COLUMN position VARCHAR(25), ADD COLUMN size VARCHAR(25);
create table table1 (a,b,c); insert into table1 values('James',10,2); insert into table1 values('Mark',7,3); insert into table1 values('Lila',74,1);
<reponame>lsm1/incubator-kyuubi -- -- 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 ...
SELECT wcs_user_sk, clicks_in_category, CASE WHEN cd_education_status = 8303423 THEN 1 ELSE 0 END AS college_education, CASE WHEN cd_gender = 1 THEN 1 ELSE 0 END AS male, clicks_in_1, clicks_in_2, clicks_in_3, clicks_in_4, clicks_in_5, clicks_in_6, clicks_in_7 FROM( SELECT wcs_user_sk, ...
<filename>db/seeds.sql INSERT INTO department (dep_name) VALUES ("SALES"), ("LEGAL"), ("ENGINEERING"), ("FINANCE"); INSERT INTO roles (title, salary, department_id) VALUES ("Salesman", 40000.00, 001), ("Lawyer", 70000.00, 002), ("Senior Engineer", 85000.00, 003), ("Acc...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 07, 2018 at 01:52 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>shivanidandir/DeloitteTraining<gh_stars>0 //1 SELECT * FROM JOBS WHERE MIN_SALARY>10000; //2 SELECT FIRST_NAME,HIRE_DATE FROM EMPLOYEES WHERE EXTRACT(YEAR FROM HIRE_DATE) BETWEEN 1980 AND 1995; //3 SELECT FIRST_NAME,HIRE_DATE FROM EMPLOYEES WHERE JOB_ID= 'IT_PROG' OR JOB_ID ='SA_MAN'; //4 SELECT * F...
<reponame>ucdavis/Catbert<gh_stars>0  CREATE Procedure usp_deleteUserFromRole -- Add the parameters for the stored procedure here @AppName nvarchar(50), @RoleName nvarchar(50), @LoginID nvarchar(8), @DeletedBy nvarchar(8) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfer...
<gh_stars>0 DROP TABLE IF EXISTS content; CREATE TABLE content( id int(11) UNSIGNED NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, value text NOT NULL, language varchar(2) NOT NULL DEFAULT 'en', state varchar(25) NOT NULL DEFAULT 'Active', PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; IN...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2020 at 11:46 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
CREATE TABLE [Production].[Document] ( [DocumentNode] [sys].[hierarchyid] NOT NULL, [DocumentLevel] AS ([DocumentNode].[GetLevel]()), [Title] NVARCHAR (50) NOT NULL, [Owner] INT NOT NULL, [FolderFlag] BIT CONSTRAINT [DF_Doc...
DROP TABLE IF EXISTS tickets; DROP TABLE IF EXISTS bookings; DROP TABLE IF EXISTS transactions; DROP TABLE IF EXISTS games; DROP TABLE IF EXISTS seats; DROP TABLE IF EXISTS customers; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS teams; CREATE TABLE customers ( Customer_Number int NOT NULL AUTO_INCR...
1) How many recipes are in the database? SELECT COUNT(*) FROM recipes; 2) How many different types of ingredients are in the database? SELECT COUNT(*) FROM( SELECT ingredient FROM ingredients GROUP BY ingredient ) AS sub; 3) How many recipes use onions as an ingredient? How many recipes use apples as an ingredi...
<gh_stars>0 CREATE PROCEDURE [dbo].[Character_SelectAll] AS /* EXEC Character_SelectAll */ BEGIN SELECT ch.[Id] , ch.[Name] , tp.[Type] , sp.[Species] , g.[Gender] , sd.[Side] , ch.[Tier2] , ch.[PhysicalAtk] , ch.[EnergyAtk] , ch.[AtkSpeed] , ch.[CritRate] , ch.[CritDmg] , ch.[IgnoreDef] ...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 12, 2015 at 05:59 AM -- Server version: 5.5.39 -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
<filename>schema/cassandra/cadence/versioned/v0.5/add_replication_config.cql CREATE TYPE cluster_replication_config ( cluster_name text, ); CREATE TYPE domain_replication_config ( active_cluster_name text, clusters list<frozen<cluster_replication_config>> ); ALTER TABLE domains_by_name ADD replicatio...