Bladeren bron

Attached File

NiraParikh 6 jaren geleden
bovenliggende
commit
8e1997bc3b

BIN
.DS_Store Bestand weergeven


+ 1
- 0
.idea/sqldialects.xml Bestand weergeven

@@ -1,6 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="SqlDialectMappings">
4
+    <file url="file://$PROJECT_DIR$/pokemon_sql/MyPokemon.sql" dialect="MySQL" />
4 5
     <file url="file://$PROJECT_DIR$/pokemon_sql/pokemon_pokemon_trainer.sql" dialect="MySQL" />
5 6
     <file url="file://$PROJECT_DIR$/pokemon_sql/pokemon_pokemons.sql" dialect="MySQL" />
6 7
     <file url="file://$PROJECT_DIR$/pokemon_sql/pokemon_trainers.sql" dialect="MySQL" />

+ 73
- 50
.idea/workspace.xml Bestand weergeven

@@ -1,7 +1,11 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="f450619b-f821-400b-ba20-f80bfdd3f007" name="Default Changelist" comment="" />
4
+    <list default="true" id="f450619b-f821-400b-ba20-f80bfdd3f007" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/pokemon_sql/MyPokemon.sql" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/.idea/sqldialects.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sqldialects.xml" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
8
+    </list>
5 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6 10
     <option name="SHOW_DIALOG" value="false" />
7 11
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -46,28 +50,32 @@
46 50
     <session id="-1455243918">
47 51
       <usages-collector id="statistics.lifecycle.project">
48 52
         <counts>
49
-          <entry key="project.closed" value="6" />
53
+          <entry key="project.closed" value="8" />
50 54
           <entry key="project.open.time.0" value="1" />
51 55
           <entry key="project.open.time.13" value="1" />
52 56
           <entry key="project.open.time.16" value="1" />
53 57
           <entry key="project.open.time.3" value="1" />
58
+          <entry key="project.open.time.4" value="1" />
59
+          <entry key="project.open.time.5" value="1" />
54 60
           <entry key="project.open.time.6" value="1" />
55 61
           <entry key="project.open.time.8" value="1" />
56
-          <entry key="project.opened" value="6" />
62
+          <entry key="project.opened" value="8" />
57 63
         </counts>
58 64
       </usages-collector>
59 65
       <usages-collector id="statistics.file.extensions.open">
60 66
         <counts>
67
+          <entry key="MyPokemon" value="1" />
61 68
           <entry key="md" value="1" />
62 69
           <entry key="pokemon_trainer" value="1" />
63
-          <entry key="sql" value="8" />
70
+          <entry key="sql" value="9" />
64 71
         </counts>
65 72
       </usages-collector>
66 73
       <usages-collector id="statistics.file.types.open">
67 74
         <counts>
68 75
           <entry key="Database Element" value="1" />
69 76
           <entry key="Markdown" value="1" />
70
-          <entry key="SQL" value="4" />
77
+          <entry key="PLAIN_TEXT" value="1" />
78
+          <entry key="SQL" value="5" />
71 79
           <entry key="Scratch" value="4" />
72 80
         </counts>
73 81
       </usages-collector>
@@ -94,28 +102,19 @@
94 102
         <entry file="file://$PROJECT_DIR$/README.md">
95 103
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
96 104
             <state split_layout="SPLIT">
97
-              <first_editor relative-caret-position="255">
98
-                <caret line="17" column="22" selection-start-line="17" selection-start-column="22" selection-end-line="17" selection-end-column="22" />
105
+              <first_editor relative-caret-position="105">
106
+                <caret line="7" column="15" lean-forward="true" selection-start-line="7" selection-start-column="15" selection-end-line="7" selection-end-column="15" />
99 107
               </first_editor>
100 108
               <second_editor />
101 109
             </state>
102 110
           </provider>
103 111
         </entry>
104 112
       </file>
105
-      <file pinned="false" current-in-tab="false">
106
-        <entry file="file://$PROJECT_DIR$/pokemon_sql/pokemon_pokemon_trainer.sql">
107
-          <provider selected="true" editor-type-id="text-editor">
108
-            <state>
109
-              <caret column="28" selection-end-line="28804" selection-end-column="173" />
110
-            </state>
111
-          </provider>
112
-        </entry>
113
-      </file>
114 113
       <file pinned="false" current-in-tab="true">
115
-        <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/db/bfabac68-8d28-403c-8936-4bc0a0bc4afa/console.sql">
114
+        <entry file="file://$PROJECT_DIR$/pokemon_sql/MyPokemon.sql">
116 115
           <provider selected="true" editor-type-id="text-editor">
117
-            <state relative-caret-position="495">
118
-              <caret line="85" lean-forward="true" selection-start-line="85" selection-end-line="85" />
116
+            <state relative-caret-position="105">
117
+              <caret line="7" selection-start-line="7" selection-end-line="8" selection-end-column="13" />
119 118
             </state>
120 119
           </provider>
121 120
         </entry>
@@ -130,6 +129,7 @@
130 129
       <list>
131 130
         <option value="$APPLICATION_CONFIG_DIR$/consoles/db/a176157a-83f4-4056-96cd-ce5f49e31df0/console.sql" />
132 131
         <option value="$APPLICATION_CONFIG_DIR$/consoles/db/bfabac68-8d28-403c-8936-4bc0a0bc4afa/console.sql" />
132
+        <option value="$PROJECT_DIR$/pokemon_sql/MyPokemon" />
133 133
       </list>
134 134
     </option>
135 135
   </component>
@@ -139,18 +139,32 @@
139 139
     <detection-done>true</detection-done>
140 140
     <sorting>DEFINITION_ORDER</sorting>
141 141
   </component>
142
-  <component name="ProjectFrameBounds" extendedState="6">
143
-    <option name="x" value="33" />
142
+  <component name="ProjectFrameBounds">
144 143
     <option name="y" value="23" />
145
-    <option name="width" value="1291" />
146
-    <option name="height" value="728" />
144
+    <option name="width" value="1280" />
145
+    <option name="height" value="729" />
147 146
   </component>
148 147
   <component name="ProjectView">
149 148
     <navigator proportions="" version="1">
150 149
       <foldersAlwaysOnTop value="true" />
151 150
     </navigator>
152 151
     <panes>
153
-      <pane id="ProjectPane" />
152
+      <pane id="ProjectPane">
153
+        <subPane>
154
+          <expand>
155
+            <path>
156
+              <item name="PokemonSqlLab" type="b2602c69:ProjectViewProjectNode" />
157
+              <item name="PokemonSqlLab" type="462c0819:PsiDirectoryNode" />
158
+            </path>
159
+            <path>
160
+              <item name="PokemonSqlLab" type="b2602c69:ProjectViewProjectNode" />
161
+              <item name="PokemonSqlLab" type="462c0819:PsiDirectoryNode" />
162
+              <item name="pokemon_sql" type="462c0819:PsiDirectoryNode" />
163
+            </path>
164
+          </expand>
165
+          <select />
166
+        </subPane>
167
+      </pane>
154 168
       <pane id="PackagesPane" />
155 169
       <pane id="Scope" />
156 170
     </panes>
@@ -159,8 +173,8 @@
159 173
     <property name="DatabaseDriversLRU" value="mysql" />
160 174
     <property name="WebServerToolWindowFactoryState" value="false" />
161 175
     <property name="aspect.path.notification.shown" value="true" />
162
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541276401369" />
163
-    <property name="database.console.LAST_STATE" value="false" />
176
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541511984464" />
177
+    <property name="database.console.LAST_STATE" value="true" />
164 178
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
165 179
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
166 180
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -196,6 +210,8 @@
196 210
       <workItem from="1541451343525" duration="1268000" />
197 211
       <workItem from="1541476042694" duration="57000" />
198 212
       <workItem from="1541476138609" duration="6133000" />
213
+      <workItem from="1541511195148" duration="782000" />
214
+      <workItem from="1541512171759" duration="26000" />
199 215
     </task>
200 216
     <task id="LOCAL-00001" summary="pokemon_pokemon_trainer">
201 217
       <created>1541274782977</created>
@@ -250,19 +266,19 @@
250 266
     <servers />
251 267
   </component>
252 268
   <component name="TimeTrackingManager">
253
-    <option name="totallyTimeSpent" value="11953000" />
269
+    <option name="totallyTimeSpent" value="12761000" />
254 270
   </component>
255 271
   <component name="ToolWindowManager">
256
-    <frame x="0" y="23" width="1280" height="727" extended-state="6" />
272
+    <frame x="0" y="23" width="1280" height="729" extended-state="0" />
257 273
     <editor active="true" />
258 274
     <layout>
259
-      <window_info content_ui="combo" id="Project" order="0" sideWeight="0.49516907" weight="0.17528272" />
260
-      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
261
-      <window_info id="Image Layers" order="2" />
262
-      <window_info id="Designer" order="3" />
263
-      <window_info id="UI Designer" order="4" />
264
-      <window_info id="Capture Tool" order="5" />
265
-      <window_info id="Favorites" order="6" sideWeight="0.5048309" side_tool="true" weight="0.0" />
275
+      <window_info id="Structure" order="0" side_tool="true" weight="0.25" />
276
+      <window_info id="Image Layers" order="1" />
277
+      <window_info id="Designer" order="2" />
278
+      <window_info id="UI Designer" order="3" />
279
+      <window_info id="Capture Tool" order="4" />
280
+      <window_info id="Favorites" order="5" sideWeight="0.5048309" side_tool="true" weight="0.0" />
281
+      <window_info content_ui="combo" id="Project" order="6" sideWeight="0.49516907" weight="0.17528272" />
266 282
       <window_info anchor="bottom" id="Message" order="0" />
267 283
       <window_info anchor="bottom" id="Find" order="1" />
268 284
       <window_info anchor="bottom" id="Run" order="2" weight="0.32876712" />
@@ -274,7 +290,7 @@
274 290
       <window_info anchor="bottom" id="Terminal" order="8" />
275 291
       <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.5024233" side_tool="true" weight="0.31968504" />
276 292
       <window_info anchor="bottom" id="Version Control" order="10" sideWeight="0.49919224" weight="0.32901135" />
277
-      <window_info anchor="bottom" id="Database Console" order="11" sideWeight="0.49757674" weight="0.4425197" />
293
+      <window_info active="true" anchor="bottom" id="Database Console" order="11" sideWeight="0.49757674" visible="true" weight="0.4411303" />
278 294
       <window_info anchor="bottom" id="Messages" order="12" weight="0.32901135" />
279 295
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
280 296
       <window_info anchor="right" id="Ant Build" order="1" weight="0.24959612" />
@@ -359,13 +375,10 @@
359 375
         </state>
360 376
       </provider>
361 377
     </entry>
362
-    <entry file="file://$PROJECT_DIR$/README.md">
363
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
364
-        <state split_layout="SPLIT">
365
-          <first_editor relative-caret-position="255">
366
-            <caret line="17" column="22" selection-start-line="17" selection-start-column="22" selection-end-line="17" selection-end-column="22" />
367
-          </first_editor>
368
-          <second_editor />
378
+    <entry file="das://bfabac68-8d28-403c-8936-4bc0a0bc4afa/schema/pokemon/table/pokemon_trainer">
379
+      <provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
380
+        <state>
381
+          <filtering enabled="true" />
369 382
         </state>
370 383
       </provider>
371 384
     </entry>
@@ -376,17 +389,27 @@
376 389
         </state>
377 390
       </provider>
378 391
     </entry>
379
-    <entry file="das://bfabac68-8d28-403c-8936-4bc0a0bc4afa/schema/pokemon/table/pokemon_trainer">
380
-      <provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
381
-        <state>
382
-          <filtering enabled="true" />
392
+    <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/db/bfabac68-8d28-403c-8936-4bc0a0bc4afa/console.sql">
393
+      <provider selected="true" editor-type-id="text-editor">
394
+        <state relative-caret-position="276">
395
+          <caret line="53" selection-end-line="85" />
383 396
         </state>
384 397
       </provider>
385 398
     </entry>
386
-    <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/db/bfabac68-8d28-403c-8936-4bc0a0bc4afa/console.sql">
399
+    <entry file="file://$PROJECT_DIR$/README.md">
400
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
401
+        <state split_layout="SPLIT">
402
+          <first_editor relative-caret-position="105">
403
+            <caret line="7" column="15" lean-forward="true" selection-start-line="7" selection-start-column="15" selection-end-line="7" selection-end-column="15" />
404
+          </first_editor>
405
+          <second_editor />
406
+        </state>
407
+      </provider>
408
+    </entry>
409
+    <entry file="file://$PROJECT_DIR$/pokemon_sql/MyPokemon.sql">
387 410
       <provider selected="true" editor-type-id="text-editor">
388
-        <state relative-caret-position="495">
389
-          <caret line="85" lean-forward="true" selection-start-line="85" selection-end-line="85" />
411
+        <state relative-caret-position="105">
412
+          <caret line="7" selection-start-line="7" selection-end-line="8" selection-end-column="13" />
390 413
         </state>
391 414
       </provider>
392 415
     </entry>

+ 6
- 0
pokemon_sql/.idea/misc.xml Bestand weergeven

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8
- 0
pokemon_sql/.idea/modules.xml Bestand weergeven

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/pokemon_sql.iml" filepath="$PROJECT_DIR$/.idea/pokemon_sql.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 9
- 0
pokemon_sql/.idea/pokemon_sql.iml Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 6
- 0
pokemon_sql/.idea/vcs.xml Bestand weergeven

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+  </component>
6
+</project>

+ 252
- 0
pokemon_sql/.idea/workspace.xml Bestand weergeven

@@ -0,0 +1,252 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="5a7cdbfa-4bc8-4828-9951-1a0c051e9f1c" name="Default Changelist" comment="" />
5
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+    <option name="SHOW_DIALOG" value="false" />
7
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+    <option name="LAST_RESOLUTION" value="IGNORE" />
10
+  </component>
11
+  <component name="FUSProjectUsageTrigger">
12
+    <session id="-452693582">
13
+      <usages-collector id="statistics.lifecycle.project">
14
+        <counts>
15
+          <entry key="project.closed" value="1" />
16
+          <entry key="project.open.time.5" value="1" />
17
+          <entry key="project.opened" value="1" />
18
+        </counts>
19
+      </usages-collector>
20
+      <usages-collector id="statistics.file.extensions.open">
21
+        <counts>
22
+          <entry key="iml" value="1" />
23
+          <entry key="sql" value="4" />
24
+          <entry key="xml" value="3" />
25
+        </counts>
26
+      </usages-collector>
27
+      <usages-collector id="statistics.file.types.open">
28
+        <counts>
29
+          <entry key="IDEA_MODULE" value="1" />
30
+          <entry key="SQL" value="4" />
31
+          <entry key="XML" value="3" />
32
+        </counts>
33
+      </usages-collector>
34
+    </session>
35
+  </component>
36
+  <component name="FileEditorManager">
37
+    <leaf>
38
+      <file pinned="false" current-in-tab="false">
39
+        <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
40
+          <provider selected="true" editor-type-id="text-editor" />
41
+        </entry>
42
+      </file>
43
+      <file pinned="false" current-in-tab="false">
44
+        <entry file="file://$PROJECT_DIR$/.idea/pokemon_sql.iml">
45
+          <provider selected="true" editor-type-id="text-editor" />
46
+        </entry>
47
+      </file>
48
+      <file pinned="false" current-in-tab="false">
49
+        <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
50
+          <provider selected="true" editor-type-id="text-editor" />
51
+        </entry>
52
+      </file>
53
+      <file pinned="false" current-in-tab="true">
54
+        <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
55
+          <provider selected="true" editor-type-id="text-editor" />
56
+        </entry>
57
+      </file>
58
+    </leaf>
59
+  </component>
60
+  <component name="Git.Settings">
61
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
62
+  </component>
63
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
64
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
65
+  <component name="JsGulpfileManager">
66
+    <detection-done>true</detection-done>
67
+    <sorting>DEFINITION_ORDER</sorting>
68
+  </component>
69
+  <component name="ProjectFrameBounds">
70
+    <option name="y" value="23" />
71
+    <option name="width" value="1280" />
72
+    <option name="height" value="727" />
73
+  </component>
74
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
75
+  <component name="ProjectView">
76
+    <navigator proportions="" version="1">
77
+      <foldersAlwaysOnTop value="true" />
78
+    </navigator>
79
+    <panes>
80
+      <pane id="ProjectPane">
81
+        <subPane>
82
+          <expand>
83
+            <path>
84
+              <item name="pokemon_sql" type="b2602c69:ProjectViewProjectNode" />
85
+              <item name="pokemon_sql" type="462c0819:PsiDirectoryNode" />
86
+            </path>
87
+          </expand>
88
+          <select />
89
+        </subPane>
90
+      </pane>
91
+      <pane id="Scope" />
92
+      <pane id="PackagesPane" />
93
+    </panes>
94
+  </component>
95
+  <component name="PropertiesComponent">
96
+    <property name="WebServerToolWindowFactoryState" value="false" />
97
+    <property name="aspect.path.notification.shown" value="true" />
98
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
99
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
100
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
101
+    <property name="project.structure.last.edited" value="Project" />
102
+    <property name="project.structure.proportion" value="0.0" />
103
+    <property name="project.structure.side.proportion" value="0.0" />
104
+  </component>
105
+  <component name="RunDashboard">
106
+    <option name="ruleStates">
107
+      <list>
108
+        <RuleState>
109
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
110
+        </RuleState>
111
+        <RuleState>
112
+          <option name="name" value="StatusDashboardGroupingRule" />
113
+        </RuleState>
114
+      </list>
115
+    </option>
116
+  </component>
117
+  <component name="SvnConfiguration">
118
+    <configuration />
119
+  </component>
120
+  <component name="TaskManager">
121
+    <task active="true" id="Default" summary="Default task">
122
+      <changelist id="5a7cdbfa-4bc8-4828-9951-1a0c051e9f1c" name="Default Changelist" comment="" />
123
+      <created>1541511081841</created>
124
+      <option name="number" value="Default" />
125
+      <option name="presentableId" value="Default" />
126
+      <updated>1541511081841</updated>
127
+      <workItem from="1541511085624" duration="51000" />
128
+    </task>
129
+    <servers />
130
+  </component>
131
+  <component name="TimeTrackingManager">
132
+    <option name="totallyTimeSpent" value="51000" />
133
+  </component>
134
+  <component name="ToolWindowManager">
135
+    <frame x="0" y="23" width="1280" height="727" extended-state="6" />
136
+    <layout>
137
+      <window_info id="Image Layers" />
138
+      <window_info id="Designer" />
139
+      <window_info id="UI Designer" />
140
+      <window_info id="Capture Tool" />
141
+      <window_info id="Favorites" side_tool="true" />
142
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
143
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
144
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
145
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
146
+      <window_info anchor="bottom" id="Terminal" />
147
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
148
+      <window_info anchor="bottom" id="Message" order="0" />
149
+      <window_info anchor="bottom" id="Find" order="1" />
150
+      <window_info anchor="bottom" id="Run" order="2" />
151
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
152
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
153
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
154
+      <window_info anchor="bottom" id="TODO" order="6" />
155
+      <window_info anchor="right" id="Palette" />
156
+      <window_info anchor="right" id="Theme Preview" />
157
+      <window_info anchor="right" id="Capture Analysis" />
158
+      <window_info anchor="right" id="Palette&#9;" />
159
+      <window_info anchor="right" id="Database" />
160
+      <window_info anchor="right" id="Maven Projects" />
161
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
162
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
163
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
164
+    </layout>
165
+  </component>
166
+  <component name="TypeScriptGeneratedFilesManager">
167
+    <option name="version" value="1" />
168
+  </component>
169
+  <component name="VcsContentAnnotationSettings">
170
+    <option name="myLimit" value="2678400000" />
171
+  </component>
172
+  <component name="editorHistoryManager">
173
+    <entry file="file://$PROJECT_DIR$/pokemon_pokemon_trainer.sql">
174
+      <provider selected="true" editor-type-id="text-editor" />
175
+    </entry>
176
+    <entry file="file://$PROJECT_DIR$/pokemon_pokemons.sql">
177
+      <provider selected="true" editor-type-id="text-editor" />
178
+    </entry>
179
+    <entry file="file://$PROJECT_DIR$/pokemon_trainers.sql">
180
+      <provider selected="true" editor-type-id="text-editor" />
181
+    </entry>
182
+    <entry file="file://$PROJECT_DIR$/pokemon_types.sql">
183
+      <provider selected="true" editor-type-id="text-editor">
184
+        <state relative-caret-position="255">
185
+          <caret line="17" column="56" lean-forward="true" selection-start-line="17" selection-start-column="56" selection-end-line="17" selection-end-column="56" />
186
+        </state>
187
+      </provider>
188
+    </entry>
189
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
190
+      <provider selected="true" editor-type-id="text-editor" />
191
+    </entry>
192
+    <entry file="file://$PROJECT_DIR$/.idea/pokemon_sql.iml">
193
+      <provider selected="true" editor-type-id="text-editor" />
194
+    </entry>
195
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
196
+      <provider selected="true" editor-type-id="text-editor" />
197
+    </entry>
198
+    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
199
+      <provider selected="true" editor-type-id="text-editor" />
200
+    </entry>
201
+  </component>
202
+  <component name="masterDetails">
203
+    <states>
204
+      <state key="GlobalLibrariesConfigurable.UI">
205
+        <settings>
206
+          <splitter-proportions>
207
+            <option name="proportions">
208
+              <list>
209
+                <option value="0.2" />
210
+              </list>
211
+            </option>
212
+          </splitter-proportions>
213
+        </settings>
214
+      </state>
215
+      <state key="JdkListConfigurable.UI">
216
+        <settings>
217
+          <last-edited>1.8</last-edited>
218
+          <splitter-proportions>
219
+            <option name="proportions">
220
+              <list>
221
+                <option value="0.2" />
222
+              </list>
223
+            </option>
224
+          </splitter-proportions>
225
+        </settings>
226
+      </state>
227
+      <state key="ProjectJDKs.UI">
228
+        <settings>
229
+          <last-edited>1.8</last-edited>
230
+          <splitter-proportions>
231
+            <option name="proportions">
232
+              <list>
233
+                <option value="0.2" />
234
+              </list>
235
+            </option>
236
+          </splitter-proportions>
237
+        </settings>
238
+      </state>
239
+      <state key="ProjectLibrariesConfigurable.UI">
240
+        <settings>
241
+          <splitter-proportions>
242
+            <option name="proportions">
243
+              <list>
244
+                <option value="0.2" />
245
+              </list>
246
+            </option>
247
+          </splitter-proportions>
248
+        </settings>
249
+      </state>
250
+    </states>
251
+  </component>
252
+</project>

+ 85
- 0
pokemon_sql/MyPokemon.sql Bestand weergeven

@@ -0,0 +1,85 @@
1
+#*+*+*+*+*+*+*+*+*+**++*+*+*+*+*+*
2
+#Part 2: Simple Selects and Counts
3
+#*+*+*+*+*+*+*+*+*+**++*+*+*+*+*+*
4
+
5
+# What are all the types of pokemon that a pokemon can have?
6
+select distinct (name) from pokemon.types
7
+# What is the name of the pokemon with id 45?
8
+select name,id from pokemon.pokemons
9
+where id = 45
10
+
11
+#How many pokemon are there?
12
+select count(distinct(name)) as pokemon from pokemon.pokemons
13
+
14
+#How many types are there?
15
+select count(*) as "Num of Pokemon types"
16
+from pokemon.types
17
+
18
+#How many pokemon have a secondary type?
19
+select count(distinct(secondary_type)) as secondary_type from pokemon.pokemons
20
+
21
+
22
+#*+*+*+*+*+*+*+*+*+**++*+*
23
+#Part 3: Joins and Groups
24
+#*+*+*+*+*+*+*+*+*+**++*+*
25
+
26
+#What is each pokemon's primary type?
27
+SELECT x.name as pokemon_name, y.name as pokemon_type
28
+FROM pokemon.pokemons x LEFT JOIN pokemon.types y
29
+ON x.primary_type = y.id;
30
+
31
+#What is Rufflet's secondary type?
32
+SELECT x.name, y.name as secondary_type
33
+FROM pokemon.pokemons x LEFT JOIN pokemon.types y
34
+ON x.secondary_type = y.id
35
+WHERE x.name = 'Rufflet';
36
+
37
+#What are the names of the pokemon that belong to the trainer with trainerID 303?
38
+SELECT z.trainername as "Trainer", group_concat(x.name) as "Pokemons"
39
+FROM pokemon.pokemons x LEFT JOIN pokemon.pokemon_trainer y
40
+ON y.pokemon_id = x.id LEFT JOIN pokemon.trainers z
41
+ON y.trainerID = z.trainerID
42
+WHERE z.trainerID = 303
43
+GROUP BY z.trainername;
44
+
45
+#How many pokemon have a secondary type Poison?
46
+SELECT count(*) as secondary_type_Poison
47
+FROM pokemon.pokemons x LEFT JOIN pokemon.types y
48
+ON x.secondary_type = y.id
49
+WHERE y.name = 'Poison';
50
+
51
+#What are all the primary types and how many pokemon have that type?
52
+SELECT x.name as primary_types, count(y.name) as pokemon_count
53
+FROM pokemon.types x LEFT JOIN pokemon.pokemons y
54
+ON x.id = y.primary_type
55
+GROUP BY x.name;
56
+
57
+#How many pokemon at level 100 does each trainer with at least one level 100 pokemon have?
58
+select trainerid, count(pokelevel) as level_100_pokemon
59
+from pokemon.pokemon_trainer
60
+where pokelevel = 100
61
+group by trainerid;
62
+
63
+#How many pokemon only belong to one trainer and no other?
64
+SELECT count(1) as pokemon_has_one_trainer
65
+FROM (select x.name, count(y.trainerID)
66
+      from pokemon.pokemons x left join pokemon.pokemon_trainer y
67
+      on x.id = y.pokemon_id
68
+      group by x.name
69
+      having count(y.trainerID) = 1) a;
70
+
71
+
72
+#*+*+*+*+*+*+*+*+*+**++*+*
73
+#Part 4: Final Report
74
+#*+*+*+*+*+*+*+*+*+**++*+*
75
+
76
+#Final Report [explain your decision - Pokemon with the highest level is the strongest pokemon and has strongest trainer and the bottom one has the weakest trainer]
77
+SELECT a.name as Pokemon_Name	, b.trainername as Trainer_Name	, c.PokeLevel, d.name as Primary_Type	, e.name as Secondary_Type
78
+from pokemon.pokemon_trainer c     join pokemon.pokemons a
79
+         on a.id = c.pokemon_id    join pokemon.trainers b
80
+         on b.trainerID = c.trainerID join pokemon.types d
81
+         on a.primary_type = d.id     join pokemon.types e
82
+         on a.secondary_type = e.id
83
+order by PokeLevel desc #Sort the data by finding out which trainer has the strongest pokemon so that this will act as a ranking of strongest to weakest trainer.
84
+
85
+