sql
stringlengths
6
1.05M
# Drop the column validation_status in variation and variation_feature ALTER TABLE `variation` DROP COLUMN `validation_status`; ALTER TABLE `variation_feature` DROP COLUMN `validation_status`; # patch identifier INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_82_83_c.sql|Drop the colu...
<filename>migrations/20201129190050_view_validator_activities_block_height_id_btree_index.down.sql DROP INDEX IF EXISTS view_validator_activities_block_height_id_btree_index;
<reponame>dustlang/rfcbot-rs CREATE TABLE issue_old ( "number" integer NOT NULL PRIMARY KEY, fk_milestone integer REFERENCES milestone (id), fk_user integer NOT NULL REFERENCES githubuser (id), fk_assignee integer REFERENCES githubuser (id), open boolean NOT NULL, is_pull_request boolean NOT NUL...
create index cvm_transactions_txdata_trace_to_addr on cvm_transactions_txdata_trace (to_addr); create index cvm_transactions_txdata_trace_from_addr on cvm_transactions_txdata_trace (from_addr); create index tx_pool_msg_key on tx_pool (msg_key);
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>1-10 --Test db_attribute by retrieving the attributes of class 'test_subclass' and the super-classes from which they are inherited create class test_superclass(name varchar(10), age integer); insert into test_superclass values('Dennis', 28); insert into test_superclass v...
<reponame>zimirrr/postgres-showcase \c pg_features_demo SET ROLE TO demorole; /* Row Level Security (RLS) is quite a new feature (9.5+) and allows having tables where it is guaranteed that all unprivileged users will see only rows that they're allowed to see based on some filter condition. Needs enabling per table. *...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 03, 2016 at 02:52 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `chef` -- CREATE DATABASE IF NOT EXISTS `ch...
<reponame>mudzy992/inventory /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /...
<filename>taxonomy/biosql/biosql-schema/sql/biosqldb-ora/BS-create-Biosql-API2.sql -- -- SQL script to create a BioSQL-compliant API on top of the Symgene -- schema. -- -- Even though the relational model of the Symgene schema is identical -- to the BioSQL schema, the naming conventions used are not. The -- Oracle vers...
<reponame>geophile/sql-layer SELECT * FROM items WHERE quan > 100 ORDER BY sku
<reponame>markjnkim/welcome-to-sd<filename>db/schema.sql<gh_stars>1-10 DROP DATABASE IF EXISTS `message_db`; CREATE DATABASE `message_db`; USE `message_db`;
-- EmployeesQX - Sybase SAP ASE.sql -- Use DBeaver or another Sybase/SAP ASE administrator. Run this script. -- It should create an EmployeesQX database schema. USE master CREATE DATABASE EmployeesQX USE EmployeesQX CREATE TABLE [dept] ( [DEPTNO] integer NOT NULL, [DNAME] varchar(20) NOT NULL, [LOC] varchar(...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.9 (Debian 12.9-1.pgdg110+1) -- Dumped by pg_dump version 13.5 (Ubuntu 13.5-0ubuntu0.21.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings ...
DROP DATABASE IF EXISTS newtown_db; CREATE DATABASE newtown_db;
CREATE OR REPLACE PROCEDURE get_next_model_run_id (is_coord IN NUMBER, installation_type IN varchar2, model_run_id_out OUT number) IS cur_max_uncoord_id number; cur_max_coord_id number; max_coord_id number; local_max_coord_id number; local_min_coord_id number; unco...
<gh_stars>0 \set ON_ERROR_STOP on \c trustydb \dt *
<filename>data/py.sql --汉字和拼音以及拼音首字母的对照表 create table pinyin (hz varchar(1),py varchar(6),zm varchar(1)); --索引以及唯一约束 create index idx_pinyin_hz on pinyin(hz); create unique index idx_pinyin_hz_py on pinyin(hz,py); create unique index idx_pinyin_hz_zm on pinyin(hz,zm); -- 未收录汉字插入以下表 create table new_discover (hz...
CREATE INDEX tiger_arealm_name_idx ON tiger_arealm USING gin (fullname gin_trgm_ops); CREATE INDEX tiger_areawater_name_idx ON tiger_areawater USING gin (fullname gin_trgm_ops); CREATE INDEX tiger_counties_name_idx ON tiger_counties USING gin (name gin_trgm_ops); CREATE INDEX tiger_roads_name_idx ON tiger_roads USING ...
ALTER TABLE github_repositories ADD COLUMN last_push_error_message TEXT, ADD COLUMN last_push_at TIMESTAMP WITH TIME ZONE;
<reponame>Ketil-A/forum INSERT INTO user (username, password, email) VALUES ('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f', '<EMAIL>'), ('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79', '<EMAIL>'); IN...
DELETE FROM "video"."EventParticipantStream";
# Write your MySQL query statement below SELECT ACTOR_ID, DIRECTOR_ID FROM ( SELECT   ACTOR_ID, DIRECTOR_ID, COUNT(1) as COOPERATION FROM   ACTORDIRECTOR GROUP BY 1, 2 HAVING COOPERATION >= 3) AS A
INSERT INTO unit (name) VALUES ('Kg'),('Botte'),('Pièce'); INSERT INTO vegetable_category (name) VALUES ('Solonacées avec pommes de terre'), ('Légumes racines et alliacées'), ('Cucurbitacées'), ('Légumes feuilles et aromatiques'), ('Crucifères'), ('Légumineuses et engrais verts s il reste de la place'); INSERT INTO so...
DELETE FROM patient_viral_load WHERE test_id IS NULL//
<gh_stars>0 DROP TABLE IF EXISTS "locations"; CREATE TABLE "locations"( device_id TEXT, location TEXT, environment TEXT ); DROP TABLE IF EXISTS "conditions"; CREATE TABLE "conditions"( time TIMESTAMP WITH TIME ZONE NOT NULL, device_id TEXT, temperature NUMERIC, humidity ...
USE ApressFinancial GO INSERT INTO CustomerDetails.Customers (Title, FirstName, OtherInitials, LastName, AddressLine1, AddressLine2, TownOrCity, USState, ZipCode, ClearedBalance, UnclearedBalance) VALUES (1, 'Bernie', 'I', 'McGee', '35 Baldrick Ave', 'West Hampstead', 18651, 0, 0, 6653.11, 0.00), (3, 'Jane', 'L', 'H...
<filename>src/main/resources/db/migration/postgresql/V1_2__CREATE_TABLE_feedback.sql CREATE TABLE IF NOT EXISTS feedback ( id BIGSERIAL PRIMARY KEY, uuid VARCHAR(255) NOT NULL, timestamp TIMESTAMP NOT NULL, session_id VARCHAR(255) NOT NULL, deployment VARCHAR(255) NOT NULL, nam...
<filename>DocMAH/Data/Sql/Scripts/Configuration_Read.sql<gh_stars>1-10 -- If the configuration table doesn't exist, return 0. IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[DocmahConfiguration]') AND type in (N'U')) BEGIN SELECT 0; END SELECT [Value] FROM [dbo].[DocmahConfiguration] WHE...
<reponame>Arneproductions/IDBS<filename>Exercises/Exercise-04/Answers/Answer-03.sql<gh_stars>1-10 /* Create a trigger on the AccountRecords table that does the following for each insertion: a) checks whether the amount is available (taking the overdraft into account) on the account being withdrawn from, b) updates th...
<filename>internal/sql/shippo_temp_trade_20220108.sql CREATE TABLE `shippo_temp_trade_20220108` ( `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT, `created_at` datetime NULL, `updated_at` datetime NULL, `deleted_at` datetime NULL, `trade_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMME...
select de_metas_acct.fact_acct_endingbalance_rebuildall();
REM $Header: /cvs/ADFToyStoreJSF/DatabaseSetup/CreateToyStoreUsers.sql,v 1.1.1.1 2006/01/26 21:47:17 steve Exp $ CONNECT SYS AS SYSDBA CREATE USER toystore IDENTIFIED BY toystore; CREATE USER toystore_statemgmt IDENTIFIED BY toystore; GRANT CONNECT, RESOURCE TO toystore; GRANT CONNECT, RESOURCE TO toystore_sta...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Apr 2020 pada 18.54 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
ALTER TABLE `sys_user` ADD `email_confirmed` BOOLEAN NOT NULL DEFAULT FALSE;
<reponame>tlhhup/bootstrap<filename>doc/bootstrap.sql /* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50615 Source Host : 127.0.0.1:3306 Source Database : bootstrap Target Server Type : MYSQL Target Server Version : 50615 File Encoding : 65001 ...
<reponame>DhirenKumar13/SpringBootProjects insert into user values (100,sysdate(),'ABD'); insert into user values (101,sysdate(),'VK'); insert into user values (102,sysdate(),'MSD'); insert into user values (103,sysdate(),'DKP'); insert into user values (104,sysdate(),'AS'); insert into post values (100,'My First Post...
/* Navicat MySQL Data Transfer Source Server : Lin Source Server Version : 50703 Source Host : localhost:3306 Source Database : mybatis Target Server Type : MYSQL Target Server Version : 50703 File Encoding : 65001 Date: 2017-05-02 15:56:11 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
CREATE TABLE users ( id SERIAL UNIQUE , login VARCHAR(50) UNIQUE , e_mail VARCHAR(100) UNIQUE , crete_date TIMESTAMP DEFAULT now() );
<filename>database/_578.sql --578. Get Highest Answer Rate Question -- --Get the highest answer rate question from a table survey_log with these columns: uid, action, question_id, answer_id, q_num, timestamp. -- --uid means user id; action has these kind of values: "show", "answer", "skip"; answer_id is not null when a...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tb_permission -- ---------------------------- DROP TABLE IF EXISTS `tb_permission`; CREATE TABLE `tb_permission` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父权限'...
INSERT INTO Immunisation (IMMUNISATION_ID,administrationDateTime,expirationDateTime,lotNumber,notGiven,note,parentPresent,primarySource,recordedDateTime,STATUS_ID,valueQuantity,ENCOUNTER_ID,LOCATION_ID,MANUFACTURER_ORGANISATION_ID,PATIENT_ID,PRACTITIONER_ID,REASON_GIVEN_CODE_ID,REASON_NOTGIVEN_CODE_ID,REPORT_ORIGIN_COD...
------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- select seg, lpad(case ...
CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(100) COLLATE utf8_bin NOT NULL, `password` varchar(100) COLLATE utf8_bin NOT NULL, `salt` varchar(100) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=3...
CREATE TABLE catalogue.AssociatedServices_History ( CatalogueItemId nvarchar(14) NOT NULL, [Description] nvarchar(1000) NULL, OrderGuidance nvarchar(1000) NULL, LastUpdated datetime2(7) NOT NULL, LastUpdatedBy int NULL, SysStartTime datetime2(0) NOT NULL, SysEndTime datetime2(0) NOT NULL, )...
<filename>thehippogriff.sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 18, 2017 at 02:25 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>iafb/greatreadingadventure  CREATE PROCEDURE [dbo].[app_PatronPoints_GetProgramLeaderboard] @ProgId INT = 0, @TenID INT = NULL AS IF @TenID IS NULL SELECT @TenID = TenID FROM Programs WHERE PID = @ProgId SELECT TOP 10 pp.PID, isnull(SUM(isnull(convert(BIGINT, NumPoints), 0)), 0) AS TotalPoints, p.User...
select distinct C.customer_name from Customer C,Borrower B,Loan L,Branch BB,Depositor D,Account A where C.customer_name = B.customer_name and B.loan_number = L.loan_number and L.branch_name = BB.branch_name and BB.branch_city = C.customer_city or C.customer_name = D.customer_name and D.account_number = A.account_number...
<filename>db/seed.sql<gh_stars>0 -- DEPARTMENT SEEDS ----- INSERT INTO department (name) VALUE ("Marketing"); INSERT INTO department (name) VALUE ("Finance"); INSERT INTO department (name) VALUE ("Management"); INSERT INTO department (name) VALUE ("Human Resource"); INSERT INTO department (name) VALUE ("IT"); -----...
-- CreateTable CREATE TABLE "users" ( "id" TEXT NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, "email" TEXT NOT NULL, "password" TEXT NOT NULL, "is_teacher" BOOLEAN DEFAULT false, "created_dt" DATETIME DEFAULT CURRENT_TIMESTAMP, "updated_dt" DATETIME DEFAULT CURRENT_TIMESTAMP ); -- CreateTable...
CRETE TABLE CHARACTER ( CHARACTER_ID VARCHAR (36), NAME VARCHAR (128), HOME_WORLD VARCHAR (128), GENDER VARCHAR (32), HEIGHT int, MASS int, HAIR_COLOR VARCHAR (64), SKIN_COLOR VARCHAR (64), PRIMARY KEY (CHARACTER_ID) );
<reponame>MohamadElarabi/IMDBAPI /* ==Scripting Parameters== Source Server Version : SQL Server 2016 (13.0.4422) Source Database Engine Edition : Microsoft SQL Server Express Edition Source Database Engine Type : Standalone SQL Server Target Server Version : SQL Server 2016 Target Database Engi...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- -- -- Table structure for table `contact` -- CREATE TABLE IF NOT EXISTS `contact` ( `contactId` int(8) NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `www` varchar(100) NOT NULL, `mail` varchar(100) N...
<filename>sql/upgrade_merchello_v1.6.0_to_v1.7.0.sql -- The 'open' order status will have the sort order of 2 UPDATE merchOrderStatus SET sortOrder = sortOrder + 1 WHERE sortOrder > 1 -- Add the 'open' order status INSERT INTO merchOrderStatus (pk, name, alias, reportable, active, sortOrder, updateDate, creat...
-- file:jsonb.sql ln:148 expect:true SELECT jsonb_object_keys(test_json) FROM test_jsonb WHERE json_type = 'scalar'
<reponame>Shuttl-Tech/antlr_psql -- file:foreign_key.sql ln:889 expect:true ALTER TABLE fktable ALTER CONSTRAINT fktable_fk_fkey DEFERRABLE INITIALLY IMMEDIATE
/* Navicat Premium Data Transfer Source Server : prod Source Server Type : MySQL Source Server Version : 50646 Source Host : 172.16.58.3 Source Database : pager_platform Target Server Type : MySQL Target Server Version : 50646 File Encoding : utf-8 Date: 05/30/2020 16:...
<gh_stars>0 USE u553gn7x3ux301dm INSERT INTO burgers (burger_name) VALUES ('The Impossible Solution Burger'), ('What Shiitake About Burger'), ('Top Bun Burger'), ('Little Swiss Sunshine Burger'), ('The Fleetwood Jack Burger'), ('Sweet Home Avocado Burger'), ('Foot Feta-ish Burger')
-- 2022-01-21T14:48:10.496Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,543116,148,TO_TIMESTAMP('2022-01-21 16:48:10','YYYY-MM-DD...
<reponame>VU-libtech/OLE-INST<gh_stars>1-10 TRUNCATE TABLE OLE_CAT_ITM_TYP_T /
<reponame>Teradata/dbt-teradata-utils<filename>macros/surrogate_key.sql {# The original implementation casted field_list elements to LONG VARCHAR. This led to #} {# 'A column or character expression is larger than the max size.' error. This #} {# implementatin removes the cast. It is the responsibility of the caller t...
SELECT_EMPLOYEE= SELECT EMPLOYEE.EMPLOYEE_ID, EMPLOYEE.FULL_NAME, EMPLOYEE.BASIC_SALARY, EMPLOYEE.GRADE_CODE, GRADE.BONUS_MAGNIFICATION, GRADE.FIXED_BONUS FROM EMPLOYEE INNER JOIN GRADE ON EMPLOYEE.GRADE_CODE = GRADE.GRADE_CODE
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2015 at 12:03 PM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
SELECT * FROM citcorpore.CamposObjetoNegocio WHERE idObjetoNegocio IN (SELECT idObjetoNegocio FROM citcorpore.ObjetoNegocio WHERE nomeTabelaDB = 'EMPREGADOS')
DROP SCHEMA IF EXISTS staging_vocabulary CASCADE; CREATE SCHEMA staging_vocabulary; -- -------------------------------------------------------- -- -- Table structure for table concept -- DROP TABLE IF EXISTS staging_vocabulary.concept CASCADE; CREATE TABLE staging_vocabulary.concept ( concept_id integer ...
<reponame>zhangzihan/nactivity set @deploy_id = uuid(); /*流程部署*/ insert into activiti.ACT_RE_DEPLOYMENT(ID_, NAME_, BUSINESS_KEY_, CATEGORY_, KEY_, TENANT_ID_, DEPLOY_TIME_, ENGINE_VERSION_) select @deploy_id, b.NAME_, b.BUSINESS_KEY_, b.CATEGORY_, b.KEY_, '替换为其它组织ID', b.DEPLOY_TIME_, b.ENGINE_VERSION_ from activiti...
-- Launch this script with "mysql --silent -p < gen-cf-users.sql > cf-users.sql" use mysql; SELECT CONCAT("GRANT USAGE ON *.* TO '", user,"'@'%' IDENTIFIED BY PASSWORD '", password, "' WITH MAX_USER_CONNECTIONS 40;") FROM user WHERE user NOT IN ('root','quota-enforcer','cf-mysql-broker','cluster-health-logger','...
drop table if exists t; drop table if exists t_buf; create table t (x UInt64) engine = MergeTree order by (x, intHash64(x)) sample by intHash64(x); insert into t select number from numbers(10000); create table t_buf as t engine = Buffer(currentDatabase(), 't', 16, 20, 100, 100000, 10000000, 50000000, 250000000); inser...
<reponame>b41sh/databend<filename>tests/suites/0_stateless/02_function/02_0031_function_strings_replace.sql SELECT '=== null ==='; SELECT REPLACE(NULL, 'a', 'b'); SELECT REPLACE('aaa', 'a', NULL); SELECT REPLACE('aaa', NULL, NULL); SELECT REPLACE(NULL, NULL, NULL); SELECT '=== const, const, const ==='; SELECT REPLACE(...
ALTER TABLE `basket` ADD `shop_session_id` VARCHAR(100) NOT NULL DEFAULT '' AFTER `label`, ADD `paymentmethod_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `Basket_ID`, ADD `deliverymethod_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `Basket_ID`, ADD `contact_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `Basket_ID`, ADD `job_idfs` ...
--normal case: merge into target table using source view, merge condition: varchar join autocommit off; --target table create table target( name char(20), id string, edate date, email varchar ); insert into target values('aaa', 'db110', '2000-12-25', '<EMAIL>'); insert into target values('bbb', 'db118', '20...
-- @testpoint:视图定义行访问控制策略,合理报错 --建表 drop table if exists test_policy cascade; create table test_policy(id int,usr varchar(20)); --插入数据 insert into test_policy(id, usr) values(1, 'user1'); insert into test_policy(id, usr) values(2, 'user2'); insert into test_policy(id, usr) values(3, 'user2'); insert into test_policy(i...
CREATE SCHEMA [Website] AUTHORIZATION [dbo] GO EXEC sp_addextendedproperty N'Description', N'Views and stored procedures that provide the only access for the application website', 'SCHEMA', N'Website', NULL, NULL, NULL, NULL GO
<filename>src/main/resources/data-mysql.sql INSERT INTO developer (id, name) VALUES (1, 'Ben'), (2, 'Ali'), (3, 'Zia'), (4, 'Abu'); INSERT INTO issue (issue_type, id, created_on, description, title, estimated_point_value, status, priority, developer_id) VALUES ('story', 1, '2021-11-29', 'Story 1', 'S1', 10, 'ESTIMATED...
# Check the student number and student name and average scores of students with average scores greater than or equal to 60 -- SELECT s_id FROM student,score # My version SELECT student.s_id, s_name,a.s FROM student,(SELECT s_id,avg(s_score) as s FROM score GROUP BY s_id) as a WHERE a.s>60 AND student.s_id = a.s_id...
<gh_stars>0 /* * Indexes */ /*Volunteer*/ CREATE INDEX idxVName ON Volunteer(FirstName,LastName); /*VolunteerLog*/ CREATE INDEX idxLogData ON VolunteerLog(VolunteerID,TaskID,Date,TotalHours); /*Checkin*/ CREATE INDEX idxCheckinData ON CheckIn(VolunteerID,Active); /*Task @since >1.2.1*/ CREATE INDEX idxTask ON Volu...
create database LIVRARIA; create table livros ( LIVRO varchar(100), AUTOR varchar(100), SEXO varchar(11), NÚMERO int(10), EDITORA VARCHAR(20), VALOR float(10), UF char(2), ANO char(5) ); /* Inserindo Dados */ insert into livros(LIVRO, AUTOR, SEXO, NÚMERO, EDITORA, VALOR, UF, ANO) values ('Cavaleiro Real', '...
CREATE TABLE `tblAccountBilling` ( `AccountBillingID` int(11) NOT NULL AUTO_INCREMENT, `AccountID` int(11) NOT NULL DEFAULT '0', `BillingType` tinyint(3) unsigned DEFAULT NULL, `BillingTimezone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `BillingCycleType` varchar(50) COLLATE utf8_unicode_ci DEFAULT NU...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 14, 2019 at 03:13 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 05-Abr-2021 às 18:39 -- Versão do servidor: 10.4.17-MariaDB -- versão do PHP: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<reponame>Otobi1/SQL<filename>20042021_Video_rental EER & DB.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='ONLY_FULL_GROUP_BY,STRICT_TRANS...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : americanlaptoptestdb Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-01-27 19:00:19 */ SET FOREIGN_KEY_CH...
<gh_stars>0 SELECT * FROM sys.schemas; SELECT * FROM sys.tables; SELECT * FROM Request.RequestType; SELECT * FROM Request.[Status]; select * from Property.Property; select * from Property.Complex; select * from Person.[Provider]; select * from Property.[Address]; select * from Person.Contact; INSERT INTO [Req...
<reponame>qua-bla/carnivora --- name: sel_list description: List all lists templates: - user.userlogin returns: TABLE returns_columns: - name: domain type: dns.t_hostname - name: localpart type: email.t_localpart - name: owner type: user.t_user - name: admin type: email.t_address - name: backe...
<filename>database/table/table_vote_user_answer.sql CREATE TABLE IF NOT EXISTS vote_user_answer( answer_id INT NOT NULL AUTO_INCREMENT, vote_id INT NOT NULL, que_id INT NOT NULL, select_id INT NULL, user_id VARCHAR(20) NULL, answer VARCHAR(500) NULL DEFAULT NULL, PRIMARY KEY(answer_id), FOREIGN KEY(vote_id) REFERENCES ...
<gh_stars>1-10 ALTER TABLE `#__nuliga_matches` ADD COLUMN `position` INT(11) NOT NULL;
USE Library; DROP TABLE IF EXISTS BooksTopics; DROP TABLE IF EXISTS Books; DROP TABLE IF EXISTS Topics; DROP TABLE IF EXISTS Authors; DROP INDEX IF EXISTS IX_BooksTopics_Book ON BooksTopics; DROP INDEX IF EXISTS IX_BooksTopics_Topic ON BooksTopics; CREATE TABLE Authors ( email VARCHAR(120) PRIMARY KEY, name ...
<reponame>theRealBaccata/picotorrent<filename>res/dbmigrations/20200403220617_create_persistence_table.sql CREATE TABLE persistent_object ( key TEXT PRIMARY KEY, value TEXT NOT NULL, UNIQUE (key) ON CONFLICT REPLACE );
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-07-2016 a las 19:24:48 -- Versión del servidor: 5.6.26 -- Versión de PHP: 5.5.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
<gh_stars>1-10 library ANCDT29 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCBaseDataElements called BaseDataElements include ANCConfig called Config include ANCConcepts called Cx include ANCDataElements called PatientData include ANCContactDataElements called ContactData context Patient...
PRAGMA encoding="UTF-8"; INSERT INTO EVENT (title, descr, startDate, endDate, maxNbParticipant, organizer, orga_id, room_id) --dans Ireste, cree par E168011W membre de l'association du BDD, mais simple membre VALUES ("Grande vente de fourrure pour reprendre du poil de la bête", 'Ceci est une courte description de ce ...
<filename>05-HCPCS/05_transform_row_maps.sql<gh_stars>1-10 /****************************************************************************** * * OMOP - Cloud Research Lab * * Observational Medical Outcomes Partnership * (c) Foundation for the National Institutes of Health (FNIH) * * Licensed under the Apache L...
<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : 444 Source Server Version : 50611 Source Host : localhost:3306 Source Database : yiishop Target Server Type : MYSQL Target Server Version : 50611 File Encoding : 65001 Date: 2016-03-27 14:58:00 */ SET FOREIGN_KEY_CHECKS...
DROP TABLE IF EXISTS `queen_user_relation`; CREATE TABLE `queen_user_relation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` bigint(20) DEFAULT NULL, `parent_id` bigint(20) DEFAULT NULL, `r_type` varchar(60) DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KE...
insert into security_group_security_permission (security_permission_id, security_group_id) values ('DELETE_COMPETENCY_GROUP', 2);
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Сен 20 2017 г., 16:24 -- Версия сервера: 10.0.31-MariaDB-0ubuntu0.16.04.2 -- Версия PHP: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
ALTER TABLE `ipbanlist` CHANGE COLUMN `list` `list` VARCHAR(15) NOT NULL DEFAULT '' FIRST;
--VISTA EN DONDE SE MUESTRAN SOLO LOS REGISTROS ACTIVOS DE LA TABLA "CURSOS EN AULAS" CREATE VIEW vw_CursosEnAulas_SeleccionarActivos AS SELECT * FROM CursosEnAulas WHERE Activo = 1
<filename>ng-blog/Data/sql_create_db_script_ngblog.sql<gh_stars>0 USE [master] GO /****** Object: Database [ngBlog] Script Date: 10/16/2019 12:31:20 PM ******/ DROP DATABASE if EXISTS [ngBlog] GO /****** Object: Database [ngBlog] Script Date: 10/16/2019 12:31:20 PM ******/ CREATE DATABASE [ngBlog] CONTAINMEN...
<filename>sql/vjson_songs.sql DROP VIEW vjson_songs; CREATE VIEW vjson_songs AS SELECT s.band_id, s.id as song_id, s.composer_id, json_object( 'band_id', s.band_id, 'band_name', b.name, 'song_id', s.id, 'song_name', s.name, 'composer_id', s.composer_id, 'composer_name', a.name, 'version', s.version ) as details ...
<gh_stars>0 CREATE TABLE person ( id SERIAL PRIMARY KEY, name VARCHAR(50), email VARCHAR(100), password TEXT ); CREATE TABLE role ( id SERIAL PRIMARY KEY, name VARCHAR(50) ); CREATE TABLE membership ( id SERIAL PRIMARY KEY, ...